Skip to content

Commit

Permalink
fix(cli): Apply --bins flag on build instead of dev (#12511)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars authored Jan 25, 2025
1 parent dc1997b commit 8e9134c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changes/fix-cli-bins.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
tauri-cli: "patch:bug"
"@tauri-apps/cli": "patch:bug"
---

Fixed an issue that caused `tauri dev` to fail because of an incorrect `--bins` flag.
4 changes: 2 additions & 2 deletions crates/tauri-cli/src/interface/rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,6 @@ fn dev_options(

if mobile {
args.push("--lib".into());
} else {
args.push("--bins".into());
}

if !args.contains(&"--no-default-features".into()) {
Expand Down Expand Up @@ -466,6 +464,8 @@ impl Rust {
.push("tauri/custom-protocol".into());
if mobile {
args.push("--lib".into());
} else {
args.push("--bins".into());
}
}

Expand Down

0 comments on commit 8e9134c

Please sign in to comment.