Skip to content

Commit

Permalink
fix(cli): detect --profile, closes tauri-apps#6255
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Feb 14, 2023

Verified

This commit was signed with the committer’s verified signature.
amrbashir Amr Bashir
1 parent 852e11e commit 5b8ecad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tooling/cli/src/interface/rust/desktop.rs
Original file line number Diff line number Diff line change
@@ -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());
}

0 comments on commit 5b8ecad

Please sign in to comment.