diff --git a/.github/workflows/app-artifacts-win.yml b/.github/workflows/app-artifacts-win.yml index 8b0bae40b2b..6385a903d31 100644 --- a/.github/workflows/app-artifacts-win.yml +++ b/.github/workflows/app-artifacts-win.yml @@ -49,6 +49,15 @@ jobs: uses: crazy-max/ghaction-chocolatey@v1 with: args: install make + - name: "Install Wix" + if: ${{ inputs.msi }} + shell: pwsh + run: | + mkdir C:\wix + cd C:\wix + curl -sSfLO wix.zip https://github.com/wixtoolset/wix3/releases/download/wix3112rtm/wix311-binaries.zip + Expand-Archive C:\wix.zip -DestinationPath C:\wix + rm wix.zip - name: Fetch certificates if: ${{ inputs.signBinaries }} shell: pwsh @@ -82,10 +91,11 @@ jobs: } else { echo "Not signing binaries" } + $env:PATH = $env:PATH + ";C:\wix;" make app-win - name: App Windows MSI if: ${{ inputs.msi }} - shell: pwsh + shell: bash working-directory: headlamp run: | if ("${{ inputs.signBinaries }}" -eq "true") { @@ -95,7 +105,7 @@ jobs: } else { echo "Not signing binaries" } - winget install WixToolset.AdditionalTools + export PATH="/c/wix:$PATH" make app-win-msi - name: Upload artifact