Skip to content

Commit bfa6969

Browse files
authored
fix(cli): detect --profile. closes tauri-apps#6255 (tauri-apps#6268)
1 parent e8014a7 commit bfa6969

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changes/cli-detect-profile.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri': 'patch'
3+
---
4+
5+
Fix passing `--profile` to cargo in `tauri build` causing conflict with `--release` passed by the CLI.

tooling/cli/src/interface/rust/desktop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ fn build_command(
291291
args.push(features.join(","));
292292
}
293293

294-
if !options.debug {
294+
if !options.debug && !args.contains(&"--profile".to_string()) {
295295
args.push("--release".into());
296296
}
297297

0 commit comments

Comments
 (0)