diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-29 22:46:37 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2022-04-29 22:46:37 -0400 |
commit | a340c8b8ce8cf0c3b218162117cbc2e8f5acb2b8 (patch) | |
tree | 6233f5d891648bd22ce379628fe41d708571731e /build | |
parent | d7d8cdaa5a4bc01001e3538a9189b04d1130d3bb (diff) | |
download | SMAPI-a340c8b8ce8cf0c3b218162117cbc2e8f5acb2b8.tar.gz SMAPI-a340c8b8ce8cf0c3b218162117cbc2e8f5acb2b8.tar.bz2 SMAPI-a340c8b8ce8cf0c3b218162117cbc2e8f5acb2b8.zip |
enable some disabled steps in Windows build script
This simplifies preparing test Windows-only installers.
Diffstat (limited to 'build')
-rw-r--r-- | build/windows/prepare-install-package.ps1 | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/build/windows/prepare-install-package.ps1 b/build/windows/prepare-install-package.ps1 index 9922cbc6..b6a23124 100644 --- a/build/windows/prepare-install-package.ps1 +++ b/build/windows/prepare-install-package.ps1 @@ -184,14 +184,13 @@ foreach ($folder in $folders) { # disable developer mode in main package In-Place-Regex -Path "$packagePath/internal/$folder/bundle/smapi-internal/config.json" -Search "`"DeveloperMode`": true" -Replace "`"DeveloperMode`": false" - # DISABLED: will be handled by Linux script # convert bundle folder into final 'install.dat' files - #foreach ($path in @("$packagePath/internal/$folder", "$packageDevPath/internal/$folder")) - #{ - # Compress-Archive -Path "$path/bundle/*" -CompressionLevel Optimal -DestinationPath "$path/install.zip" - # mv "$path/install.zip" "$path/install.dat" - # rm -Recurse -Force "$path/bundle" - #} + foreach ($path in @("$packagePath/internal/$folder", "$packageDevPath/internal/$folder")) + { + Compress-Archive -Path "$path/bundle/*" -CompressionLevel Optimal -DestinationPath "$path/install.zip" + mv "$path/install.zip" "$path/install.dat" + rm -Recurse -Force "$path/bundle" + } } @@ -208,10 +207,9 @@ if (!$version) { mv "$packagePath" "bin/SMAPI $version installer" mv "$packageDevPath" "bin/SMAPI $version installer for developers" -# DISABLED: will be handled by Linux script -## package files -#Compress-Archive -Path "bin/SMAPI $version installer" -DestinationPath "bin/SMAPI $version installer.zip" -CompressionLevel Optimal -#Compress-Archive -Path "bin/SMAPI $version installer for developers" -DestinationPath "bin/SMAPI $version installer for developers.zip" -CompressionLevel Optimal +# package files +Compress-Archive -Path "bin/SMAPI $version installer" -DestinationPath "bin/SMAPI $version installer.zip" -CompressionLevel Optimal +Compress-Archive -Path "bin/SMAPI $version installer for developers" -DestinationPath "bin/SMAPI $version installer for developers.zip" -CompressionLevel Optimal echo "" echo "Done! See docs/technical/smapi.md to create the release zips." |