#I recently having build error both on local and github action

24 messages · Page 1 of 1 (latest)

zealous gust
#

Finished release [optimized] target(s) in 29.45s
Info Target: x64
Running candle for "main.wxs"
Error failed to bundle project: error running candle.exe
npm verb exit 1
npm verb code 1

what could have been the issue, it was working last week.

vestal parcel
#

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

drowsy copper
#

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?

vestal parcel
#

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

zealous gust
#

I see that there was na fix pushed for cli.js 1.3.1. how will we use that?

vestal parcel
zealous gust
#

does this also solve the issue with github actions?

vestal parcel
#

yes

#

github action does the same thing you do locally

zealous gust
#

great! thank you

zealous gust
#

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?

vestal parcel
#

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

zealous gust
#

i really need to have this be build and deploy. What can I do just have it build

vestal parcel
#

cargo tauri build

#

at least locally

zealous gust
#

okay, let me try

#

that work, I will just do a manual release for now 🙂
thank you

vestal parcel
#

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

zealous gust
#

trying that now

#

confirming that everything is now working