From a63046b90c99e3a2e464e719905fd4e908e77c36 Mon Sep 17 00:00:00 2001 From: Manfred Wallner Date: Mon, 16 Sep 2024 19:58:10 +0200 Subject: [PATCH] GH-579: include compiled modules in Boxstarter.zip --- BuildScripts/default.ps1 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/BuildScripts/default.ps1 b/BuildScripts/default.ps1 index 1eaad49a..1516eb17 100644 --- a/BuildScripts/default.ps1 +++ b/BuildScripts/default.ps1 @@ -112,7 +112,7 @@ Task Run-GitVersion { Write-Host "##teamcity[buildNumber '$packageVersion']" } -Task Create-ModuleZipForRemoting { +Task Create-ModuleZipForRemoting -depends Compile-Modules { if (Test-Path "$baseDir/Boxstarter.Chocolatey/Boxstarter.zip") { Remove-Item "$baseDir/Boxstarter.Chocolatey/Boxstarter.zip" -Recurse -Force -ErrorAction SilentlyContinue } @@ -121,10 +121,11 @@ Task Create-ModuleZipForRemoting { } Remove-Item "$env:temp/Boxstarter.zip" -Force -ErrorAction SilentlyContinue $boxstarterZip = "$baseDir/buildArtifacts/Boxstarter.zip" - ."$7z" a -tzip "$boxstarterZip" "$baseDir/Boxstarter.Common" | Out-Null - ."$7z" a -tzip "$boxstarterZip" "$baseDir/Boxstarter.WinConfig" | Out-Null - ."$7z" a -tzip "$boxstarterZip" "$baseDir/Boxstarter.Bootstrapper" | Out-Null - ."$7z" a -tzip "$boxstarterZip" "$baseDir/Boxstarter.Chocolatey" | Out-Null + + @('Common', 'WinConfig', 'Bootstrapper', 'Chocolatey') | ForEach-Object { + ."$7z" a -tzip "$boxstarterZip" "$baseDir/buildArtifacts/tempNuGetFolders/Boxstarter.$_" | Out-Null + } + ."$7z" a -tzip "$boxstarterZip" "$baseDir/Boxstarter.config" | Out-Null ."$7z" a -tzip "$boxstarterZip" "$baseDir/LICENSE.txt" | Out-Null ."$7z" a -tzip "$boxstarterZip" "$baseDir/NOTICE.txt" | Out-Null