Skip to content

Commit

Permalink
fix(cli): detect --profile. closes #6255 (#6268)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Feb 18, 2023
1 parent e8014a7 commit bfa6969
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/cli-detect-profile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'tauri': 'patch'
---

Fix passing `--profile` to cargo in `tauri build` causing conflict with `--release` passed by the CLI.
2 changes: 1 addition & 1 deletion tooling/cli/src/interface/rust/desktop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ fn build_command(
args.push(features.join(","));
}

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

Expand Down

0 comments on commit bfa6969

Please sign in to comment.