mirror of
https://github.com/cyanfish/naps2.git
synced 2024-10-05 11:57:32 +03:00
Added a .7z standalone to the publish script, in addition to the .zip standalone.
This commit is contained in:
parent
764a7a872e
commit
d7c6377bed
@ -28,6 +28,7 @@ cp "..\..\NAPS2.Setup\bin\Release\NAPS2.Setup.msi" ($PublishDir + "naps2-$Versio
|
||||
# Standalone ZIP
|
||||
$StandaloneDir = $PublishDir + "naps2-$Version-standalone\"
|
||||
$StandaloneZip = $PublishDir + "naps2-$Version-standalone.zip"
|
||||
$Standalone7z = $PublishDir + "naps2-$Version-standalone.7z"
|
||||
if (Test-Path $StandaloneDir) {
|
||||
rmdir $StandaloneDir -Recurse
|
||||
}
|
||||
@ -50,5 +51,9 @@ foreach ($File in ("..\Resources\scanner-app.ico", "..\appsettings.xml", "lib\wi
|
||||
if (Test-Path $StandaloneZip) {
|
||||
rm $StandaloneZip
|
||||
}
|
||||
if (Test-Path $Standalone7z) {
|
||||
rm $Standalone7z
|
||||
}
|
||||
& (Get-7z-Path) a $StandaloneZip $($StandaloneDir + "*")
|
||||
& (Get-7z-Path) a $Standalone7z $($StandaloneDir + "*")
|
||||
rmdir -Recurse $StandaloneDir
|
||||
|
Loading…
Reference in New Issue
Block a user