Skip to content

Commit

Permalink
Fix build-windows-installer.sh & main.wxs
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiKorla committed Jul 21, 2024
1 parent 11ddef6 commit 6e2a1d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions scripts/build-windows-installer.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/bash
WXS_FILE="wix/main.wxs"
TARGET="x86_64-pc-windows-msvc"
VERSION=$(cat VERSION)

# install latest wix
Expand All @@ -10,4 +9,4 @@ dotnet tool install --global wix
wix extension add WixToolset.UI.wixext

# build the installer
wix build -pdbtype none -arch x64 -d PackageVersion=$VERSION $WXS_FILE -d Target=$TARGET -o halloy-installer.msi -ext WixToolset.UI.wixext
wix build -pdbtype none -arch x64 -d PackageVersion=$VERSION $WXS_FILE -o halloy-installer.msi -ext WixToolset.UI.wixext
2 changes: 1 addition & 1 deletion wix/main.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<ComponentGroup Id="MainComponents" Directory="INSTALLFOLDER">

<Component>
<File Id="Application" DiskId="1" Source="target/$(Target)/release/halloy.exe" KeyPath="yes">
<File Id="Application" DiskId="1" Source="target/release/halloy.exe" KeyPath="yes">
<Shortcut
Id="ApplicationStartMenuShortcutInFile"
Name="halloy.exe"
Expand Down

0 comments on commit 6e2a1d4

Please sign in to comment.