Skip to content

Commit 8e9134c

Browse files
authored
fix(cli): Apply --bins flag on build instead of dev (#12511)
1 parent dc1997b commit 8e9134c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.changes/fix-cli-bins.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
tauri-cli: "patch:bug"
3+
"@tauri-apps/cli": "patch:bug"
4+
---
5+
6+
Fixed an issue that caused `tauri dev` to fail because of an incorrect `--bins` flag.

crates/tauri-cli/src/interface/rust.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,6 @@ fn dev_options(
382382

383383
if mobile {
384384
args.push("--lib".into());
385-
} else {
386-
args.push("--bins".into());
387385
}
388386

389387
if !args.contains(&"--no-default-features".into()) {
@@ -466,6 +464,8 @@ impl Rust {
466464
.push("tauri/custom-protocol".into());
467465
if mobile {
468466
args.push("--lib".into());
467+
} else {
468+
args.push("--bins".into());
469469
}
470470
}
471471

0 commit comments

Comments
 (0)