Skip to content
Discussion options

You must be logged in to vote

Thanks! You were spot-on on both points.

1) beforeBuildCommand
My broken flow was:

cross build --target x86_64-pc-windows-gnu --release
cargo tauri bundle --target x86_64-pc-windows-gnu

That second step didn’t recompile the Rust binary, so beforeBuildCommand wasn’t run for the exe that got bundled ⇒ ../dist wasn’t embedded.

What fixed it was doing it in one step so Tauri runs the front build and rebuilds the Rust exe:

cargo tauri build --runner cross --target x86_64-pc-windows-gnu

After that the exe grew ~100 KB so the UI is actually embedded.

2) -d flag
You’re right — that -d line was from a debug trial. The failing installer came from the two-step flow above, but point taken: -d would u…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@39george
Comment options

Answer selected by 39george
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants