tauri: [bug] Error in generating wix installer on Windows

Describe the bug

I’ve used the tauri-apps/tauri-action@v0 to automatically build the installer, but I get this error:

     Finished release [optimized] target(s) in 2m 22s
        Info Target: x64
     Signing C:\actions-runner\_work\[...]\src-tauri\target\release\[...].exe
     Signing C:\actions-runner\_work\[...]\src-tauri\target\release\[...].exe with identity "ae7ce42c742d8b5f1ce7547294c42dbc8b21ad91"
        Info "Done Adding Additional Store\r\nSuccessfully signed: C:\\actions-runner\\_work\\[...]\\src-tauri\\target\\release\\[...].exe\r\r\n"
     Running candle for "main.wxs"
     Running light to produce C:\actions-runner\_work\[...]\src-tauri\target\release\bundle/msi/[...]_0.0.4_x64_en-US.msi
       Error failed to bundle project: error running light.exe: error running light.exe: `failed to run C:\Users\GithubRunner\AppData\Local\tauri/WixTools\light.exe`
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Reproduction

Use tauri-apps/tauri-action@v0 on a self-hosted runner

Expected behavior

The release gets correctly created

Platform and versions

@tauri-apps/cli 1.0.3 @tauri-apps/api 1.0.2 tauri 1.0.5 tauri-build 1.0.4

Stack trace

No response

Additional context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 16 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Pushed a fix if you want to test it. Run cargo install --git https://github.com/tauri-apps/tauri --branch fix/wix-clear-env tauri-cli --force and then add the tauriScript input to the tauri-action usage:

- uses: tauri-apps/tauri-action@v0
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        tauriScript: cargo tauri

EDIT: gotta fix an issue first 😦 EDIT2: Done.

Can you run it with the verbose flag enabled, like yarn tauri build --verbose -> in the action you can specify --verbose in the args property.