Skip to content

Commit

Permalink
Trying to fix Windows build for release 7.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
brunchboy committed May 5, 2024
1 parent 6dc0a38 commit 7be8ba3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/scripts/build_msi.ps1
Expand Up @@ -20,14 +20,15 @@ if (!(Test-Path $Light)) {

# Download the executable jar into an Input folder to be used in building the native app bundle
mkdir Input
if ( $env:release_snapshot )
if ( $env:release_snapshot -eq "true" )
{
Write-Warning "Trying to download file from latest-preview release"
gh release download latest-preview --pattern "*.jar" --output Input/beat-link-trigger.jar
}
else
{
Write-Warning "Trying to download file from release with tag $env:release_tag"
gh release download "$env:release_tag" --pattern "*.jar" --output Input/beat-link-trigger.jar
gh release download $env:release_tag --pattern "*.jar" --output Input/beat-link-trigger.jar
}

# Build the native application bundle and installer.
Expand Down Expand Up @@ -56,7 +57,7 @@ copy ".\.github\resources\MSI Template.wxs" ".\"
& $Light -b "Beat Link Trigger" -nologo "*.wixobj" -out ""$env:artifact_name"" -ext WixUIExtension -ext WixFirewallExtension

# Upload the MSI as a release artifact
if ( $env:release_snapshot )
if ( $env:release_snapshot -eq "true" )
{
gh release upload latest-preview "$($env:artifact_name)#Windows installer"
}
Expand Down

0 comments on commit 7be8ba3

Please sign in to comment.