Closed SetZero closed 8 months ago
Note - this is still not fixed.
Cargo uses profile dev
to represent debug builds, but they are stored in target/debug
instead of target/dev
as the code expects.
Just to understand this correctly, you're using --profile dev as an alias for the --debug flag (or in vanilla cargo, omitting the --release flag) and that's not working?
Yup exactly. I'm doing that because I'm using another tool (cargo-make
) to invoke Tauri, and that one only has knowledge of Cargo profiles.
Thank you for the quick fix!
Describe the bug
When you setup a build with a custom profile the build will fail with the message:
This is because the app will be stored in
F:\app\src-tauri\target\[PROFILE]\app.exe
and not alwaysrelease
.From what I can see the error message is from this line: https://github.com/tauri-apps/tauri/blob/441f96465488a4f8a5731cc51b8ac97b685898c7/tooling/cli/src/interface/rust/desktop.rs#L372
And the path only supports release and debug: https://github.com/tauri-apps/tauri/blob/441f96465488a4f8a5731cc51b8ac97b685898c7/tooling/cli/src/interface/rust.rs#L946
(I might be wrong, as I haven't looked that much into the code, so take that with a grain of salt)
Reproduction
Create a custom profile in
Cargo.toml
:Build you custom profile:
The app will be stored in
F:\app\src-tauri\target\optimized\app.exe
Expected behavior
The build should be able to rename the file
Platform and versions
Additional context
No response