Skip to content

Commit 5b8ecad

Browse files
committed
fix(cli): detect --profile, closes tauri-apps#6255
1 parent 852e11e commit 5b8ecad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)