#I recently having build error both on local and github action
24 messages · Page 1 of 1 (latest)
If you add the --verbose flag you'll get a more helpful output. But you're probably using tauri's resource or sidecar feature, or modified the wxs template yourself. In which case this is a known (and fixed) issue which you can work around by using the cli from git for now cargo install tauri-cli --git https://github.com/tauri-apps/tauri --debug --features rustls
I have no clue how wix actually works but i had the exact same error today, after going from Tauri 1.2 -> 1.3.
I fixed it by committing everything and then cloning the git repository. The new repository works fine while the old one still is failing the build.
I guess the Tauri update somehow broke the wix configuration or cache?
the cli v1.3 incorrectly escapes symbols like <> when writing the resources into the wix template. So if a clean clone means you're back to using cli v1.2 then it's "fixed"
btw we're publishing the fix right now
I see that there was na fix pushed for cli.js 1.3.1. how will we use that?
https://tauri.app/v1/guides/development/updating-dependencies#update-npm-packages (very first tabber). If you use the cargo base cli you'll need to run cargo install tauri-cli again
does this also solve the issue with github actions?
great! thank you
after I execute :
cargo install tauri-cli
it installed the version 1.3.1
then I run :
npm run tauri build
and it returned:
Finished release [optimized] target(s) in 32.42s
Info Target: x64
Running candle for "main.wxs"
Error failed to bundle project: error running candle.exe
do i need to update anything after doing the cargo install tauri-cli?
if you install the cli via cargo install tauri-cli then only the cli behind cargo tauri build will be updated. The npm package is updated as shown in the link earlier (it's the @tauri-apps/cli package)
That said, the npm cli is not fully published yet so installation will probably fail
should only take a few minutes now https://github.com/tauri-apps/tauri/actions/runs/4914812117
i really need to have this be build and deploy. What can I do just have it build
btw the js cli is published now so if you rerun npm install --save-dev @tauri-apps/cli@latest it should install the fixed cli