1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00

Fix Windows deployment

This commit is contained in:
Christian Duerr 2019-04-02 22:58:18 +00:00 committed by GitHub
parent 6f4d1afcf8
commit 48d781d123
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 14 deletions

View file

@ -1,11 +1,11 @@
#!/bin/bash
# All files which should be added only if they changed
aux_files=("alacritty-completions.bash"
"alacritty-completions.fish"
"alacritty-completions.zsh"
"alacritty.desktop"
"alacritty.info"
aux_files=("extra/completions/alacritty.bash"
"extra/completions/alacritty.fish"
"extra/completions/_alacritty"
"extra/linux/alacritty.desktop"
"extra/alacritty.info"
"alacritty.yml")
# Get previous tag to check for changes
@ -63,17 +63,16 @@ elif [ "$TRAVIS_OS_NAME" == "windows" ]; then
# Create msi installer
./WiX.*/tools/candle.exe -nologo -arch "x64" -ext WixUIExtension -ext WixUtilExtension -out "target/alacritty.wixobj" "extra/windows/wix/alacritty.wxs"
./WiX.*/tools/light.exe -nologo -ext WixUIExtension -ext WixUtilExtension -out "target/deploy/${name}-windows-installer.msi" -sice:ICE61 -sice:ICE91 "target/alacritty.wixobj"
./WiX.*/tools/light.exe -nologo -ext WixUIExtension -ext WixUtilExtension -out "target/installer.msi" -sice:ICE61 -sice:ICE91 "target/alacritty.wixobj"
mv "target/installer.msi" "target/deploy/${name}-windows-installer.msi"
fi
# Convert and add manpage if it changed
if [ -n "$(git diff $prev_tag HEAD alacritty.man)" ]; then
gzip -c "./alacritty.man" > "./target/deploy/alacritty.1.gz"
if [ -n "$(git diff $prev_tag HEAD extra/alacritty.man)" ]; then
gzip -c "./extra/alacritty.man" > "./target/deploy/alacritty.1.gz"
fi
# Offer extra files if they changed
# Offer various other files
for file in "${aux_files[@]}"; do
if [ -n "$(git diff $prev_tag HEAD $file)" ]; then
cp $file "./target/deploy/"
fi
cp $file "./target/deploy/"
done

View file

@ -5,8 +5,8 @@
<Product Name="Alacritty" Id="*" UpgradeCode="87c21c74-dbd5-4584-89d5-46d9cd0c40a7" Language="1033" Codepage="1252" Version="0.2.9" Manufacturer="Alacritty">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine"/>
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A newer version of [ProductName] is already installed."/>
<Icon Id="AlacrittyIco" SourceFile="..\alacritty.ico"/>
<WixVariable Id="WixUILicenseRtf" Value="license.rtf"/>
<Icon Id="AlacrittyIco" SourceFile="..\extra\windows\alacritty.ico"/>
<WixVariable Id="WixUILicenseRtf" Value="..\extra\windows\wix\license.rtf"/>
<Property Id="ARPPRODUCTICON" Value="AlacrittyIco"/>
<MediaTemplate EmbedCab="yes"/>
<UIRef Id="WixUI_Minimal"/>