summaryrefslogtreecommitdiff
path: root/ci/before_deploy.sh
diff options
context:
space:
mode:
authorErik Berkun-Drevnig <erik.b22@gmail.com>2019-03-02 13:31:14 -0500
committerChristian Duerr <chrisduerr@users.noreply.github.com>2019-03-02 18:31:14 +0000
commite0fdc3329c4ca06e5853401e9c7c04f16b28eba3 (patch)
treed7a071dd368c5e6129394723692848284ab80c58 /ci/before_deploy.sh
parent8d5e1226d500579692128439abd9c991ba9a72d3 (diff)
downloadalacritty-e0fdc3329c4ca06e5853401e9c7c04f16b28eba3.tar.gz
alacritty-e0fdc3329c4ca06e5853401e9c7c04f16b28eba3.zip
Add MSI installer for Windows
Diffstat (limited to 'ci/before_deploy.sh')
-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