From aae076e0468e73e5b7713bc37dcd0fdbee690d12 Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Mon, 27 Nov 2017 17:26:51 -0800 Subject: [PATCH] remove `signed` folder in zip during packaging (#5527) --- tools/packaging/packaging.psm1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/packaging/packaging.psm1 b/tools/packaging/packaging.psm1 index 4ac1211527..05cf70a59a 100644 --- a/tools/packaging/packaging.psm1 +++ b/tools/packaging/packaging.psm1 @@ -448,6 +448,12 @@ function New-PSSignedBuildZip Copy-Item -Path $_ -Destination $destination -force } + # Remove `signed` folder in buildpath now that signed binaries are copied + if (Test-Path $BuildPath\signed) + { + Remove-Item -Recurse -Force -Path $BuildPath\signed + } + $name = split-path -Path $BuildPath -Leaf $zipLocationPath = Join-Path -Path $DestinationFolder -ChildPath "$name-signed.zip" Compress-Archive -Path $BuildPath\* -DestinationPath $zipLocationPath