-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed as not planned
Labels
status: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug
Description
Describe the bug
When run cargo tauri build, tauri swallowed Wix (candle.exe) 's error output, and that makes it hard to find the root error.
Running candle for "main.wxs"
Error failed to bundle project:
- error running candle.exe
- `failed to run C:\Users\liigo\AppData\Local\tauri\WixTools314\candle.exe`
The swallowed error is (you only got this untill you run candle.exe manually):
Windows Installer XML Toolset Compiler version 3.14.1.8722
Copyright (c) .NET Foundation and contributors. All rights reserved.
main.wxs
main.wxs(15) : error CNDL0006 : The Product/@Manufacturer attribute's value cannot be an empty string. If a value is not required, simply remove the entire attribute.
see DioxusLabs/dioxus#3233 and DioxusLabs/dioxus-template#58
Reproduction
step 1: set "identifier": "" in tauri.conf.json (to get a bad main.wxs)
step 2: run cargo tauri build
Expected behavior
Instead of a just saying failed to run candle.exe, it should output the detail error at least contains:
main.wxs(15) : error CNDL0006 : The Product/@Manufacturer attribute's value cannot be an empty string.
Full tauri info output
> cargo tauri info
[✔] Environment
- OS: Windows 10.0.19045 x86_64 (X64)
✔ WebView2: 121.0.2277.128
✔ MSVC: Visual Studio Community 2022
✔ rustc: 1.83.0 (90b35a623 2024-11-26)
✔ cargo: 1.83.0 (5ffbef321 2024-10-29)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
- bun: 1.1.30
- deno: deno 2.0.6
[-] Packages
- tauri 🦀: 2.1.1
- tauri-build 🦀: 2.0.3
- wry 🦀: 0.47.2
- tao 🦀: 0.30.8
- tauri-cli 🦀: 2.0.4
[-] Plugins
- tauri-plugin-shell 🦀: 2.2.0
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
### Stack trace
```text
N/A
Additional context
cargo tauri build
PS C:\Users\liigo\tmp\hi-tauri-sycamore-new> cargo tauri build
Running beforeBuildCommand `trunk build --release`
2025-01-03T02:12:01.463698Z INFO Starting trunk 0.21.5
2025-01-03T02:12:01.467227Z INFO starting build
Finished `release` profile [optimized] target(s) in 0.64s
2025-01-03T02:12:06.823934Z INFO applying new distribution
2025-01-03T02:12:06.850674Z INFO success
Compiling hi-tauri-sycamore-new v0.1.0 (C:\Users\liigo\tmp\hi-tauri-sycamore-new\src-tauri)
Finished `release` profile [optimized] target(s) in 1m 07s
Built application at: E:\tmp\RUST_DIR\CARGO_TARGET_DIR\release\hi-tauri-sycamore-new.exe
Info Target: x64
Running candle for "main.wxs"
Error failed to bundle project:
- error running candle.exe
- `failed to run C:\Users\liigo\AppData\Local\tauri\WixTools314\candle.exe`
PS C:\Users\liigo\tmp\hi-tauri-sycamore-new> Metadata
Metadata
Assignees
Labels
status: needs triageThis issue needs to triage, applied to new issuesThis issue needs to triage, applied to new issuestype: bug