From e0fdc3329c4ca06e5853401e9c7c04f16b28eba3 Mon Sep 17 00:00:00 2001 From: Erik Berkun-Drevnig Date: Sat, 2 Mar 2019 13:31:14 -0500 Subject: Add MSI installer for Windows --- ci/before_deploy.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'ci/before_deploy.sh') 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 -- cgit v1.2.3-54-g00ecf