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:
parent
6f4d1afcf8
commit
48d781d123
2 changed files with 13 additions and 14 deletions
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# All files which should be added only if they changed
|
# All files which should be added only if they changed
|
||||||
aux_files=("alacritty-completions.bash"
|
aux_files=("extra/completions/alacritty.bash"
|
||||||
"alacritty-completions.fish"
|
"extra/completions/alacritty.fish"
|
||||||
"alacritty-completions.zsh"
|
"extra/completions/_alacritty"
|
||||||
"alacritty.desktop"
|
"extra/linux/alacritty.desktop"
|
||||||
"alacritty.info"
|
"extra/alacritty.info"
|
||||||
"alacritty.yml")
|
"alacritty.yml")
|
||||||
|
|
||||||
# Get previous tag to check for changes
|
# Get previous tag to check for changes
|
||||||
|
@ -63,17 +63,16 @@ elif [ "$TRAVIS_OS_NAME" == "windows" ]; then
|
||||||
|
|
||||||
# Create msi installer
|
# 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/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
|
fi
|
||||||
|
|
||||||
# Convert and add manpage if it changed
|
# Convert and add manpage if it changed
|
||||||
if [ -n "$(git diff $prev_tag HEAD alacritty.man)" ]; then
|
if [ -n "$(git diff $prev_tag HEAD extra/alacritty.man)" ]; then
|
||||||
gzip -c "./alacritty.man" > "./target/deploy/alacritty.1.gz"
|
gzip -c "./extra/alacritty.man" > "./target/deploy/alacritty.1.gz"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Offer extra files if they changed
|
# Offer various other files
|
||||||
for file in "${aux_files[@]}"; do
|
for file in "${aux_files[@]}"; do
|
||||||
if [ -n "$(git diff $prev_tag HEAD $file)" ]; then
|
cp $file "./target/deploy/"
|
||||||
cp $file "./target/deploy/"
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
<Product Name="Alacritty" Id="*" UpgradeCode="87c21c74-dbd5-4584-89d5-46d9cd0c40a7" Language="1033" Codepage="1252" Version="0.2.9" Manufacturer="Alacritty">
|
<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"/>
|
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine"/>
|
||||||
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A newer version of [ProductName] is already installed."/>
|
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A newer version of [ProductName] is already installed."/>
|
||||||
<Icon Id="AlacrittyIco" SourceFile="..\alacritty.ico"/>
|
<Icon Id="AlacrittyIco" SourceFile="..\extra\windows\alacritty.ico"/>
|
||||||
<WixVariable Id="WixUILicenseRtf" Value="license.rtf"/>
|
<WixVariable Id="WixUILicenseRtf" Value="..\extra\windows\wix\license.rtf"/>
|
||||||
<Property Id="ARPPRODUCTICON" Value="AlacrittyIco"/>
|
<Property Id="ARPPRODUCTICON" Value="AlacrittyIco"/>
|
||||||
<MediaTemplate EmbedCab="yes"/>
|
<MediaTemplate EmbedCab="yes"/>
|
||||||
<UIRef Id="WixUI_Minimal"/>
|
<UIRef Id="WixUI_Minimal"/>
|
||||||
|
|
Loading…
Reference in a new issue