Skip to content

Commit

Permalink
GH-579: include compiled modules in Boxstarter.zip
Browse files Browse the repository at this point in the history
  • Loading branch information
mwallner committed Sep 16, 2024
1 parent ac87ed2 commit a63046b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions BuildScripts/default.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
Expand Down

0 comments on commit a63046b

Please sign in to comment.