Closed phi-fell closed 6 months ago
This is something internal to wix (the msi creation tool) completely outside of our control. That said, i'd consider this something that shouldn't be done either way since it would invalidate the whole target dir anyway (and in the past even caused compiler issues for me a few times).
Describe the bug
Building a project on windows in the WSL filesystem e.g. "\wsl$\Ubuntu..." or "\wsl.localhost\Ubuntu..." fails with:
candle.exe : error CNDL0001 : Invalid URI: The hostname could not be parsed.
andlight.exe : error LGHT0001 : The system cannot find the path specified. (Exception from HRESULT: 0x80070003)
respectively.Moving the folder onto e.g. the C drive solves the issue.
I'm on Windows 11 home, WSL2, Ubuntu-22.04
Reproduction
(install rust, tauri-cli through cargo, and all prereqs on windows and ubuntu under wsl, install create-tauri-app through cargo on wsl)
Run
cargo create-tauri-app
in WSL (name: test, lang: rust/cargo, template: vanilla)change the bundle identifier to
test.identifier
(or anything else valid other thancom.tauri.dev
)(optional) test
cargo tauri build
, note that it works under WSLnavigate to the folder in windows (powershell), either via
\\wsl$\Ubuntu-22.04\
or\\wsl.localhost\Ubuntu-22.04
, runcargo tauri build
, error occurs(optional) copy and paste folder onto windows filesystem (e.g. C Drive), run
cargo tauri build
, error does not occurExpected behavior
cargo tauri build
should succeed.Full
tauri info
outputStack trace
Additional context
No response