aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
Diffstat (limited to 'ci')
-rwxr-xr-xci/before_deploy.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh
index 62b5bc2e..75ceb53b 100755
--- a/ci/before_deploy.sh
+++ b/ci/before_deploy.sh
@@ -54,9 +54,17 @@ elif [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$ARCH" == "i386" ]; then
# Make sure all files can be uploaded without permission errors
sudo chown -R $USER:$USER "./target"
elif [ "$TRAVIS_OS_NAME" == "windows" ]; then
- choco install 7zip
- 7z a -tzip "./target/deploy/${name}-windows.zip" "./target/release/alacritty.exe" \
+ choco install 7zip nuget.commandline
+ nuget install WiX
+
+ # Create zip archive
+ 7z a -tzip "./target/deploy/${name}-windows-portable.zip" "./target/release/alacritty.exe" \
"./target/release/winpty-agent.exe"
+
+ # Create msi installer
+ ./WiX.*/tools/candle.exe -nologo -arch "x64" -ext WixUIExtension -ext WixUtilExtension -out "wix/alacritty.wixobj" "wix/alacritty.wxs"
+ ./WiX.*/tools/light.exe -nologo -ext WixUIExtension -ext WixUtilExtension -out "wix/alacritty.msi" -sice:ICE61 -sice:ICE91 "wix/alacritty.wixobj"
+ mv "./wix/alacritty.msi" "./target/deploy/${name}-windows-installer.msi"
fi
# Convert and add manpage if it changed