mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
remove signed folder in zip during packaging (#5527)
This commit is contained in:
1 parent
d8eb4c5601
commit
db0498da6b
1 file changed
+6
@@ -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
|
||||
|
||||
Reference in new issue
Block a user