Skip to content

Commit

Permalink
fix: fix --tauri-version 2 parsing
Browse files Browse the repository at this point in the history
closes #829
  • Loading branch information
amrbashir committed Oct 28, 2024
1 parent 6b6f978 commit cfa3e41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changes/tauri-version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"create-tauri-app": "patch"
"create-tauri-app-js": "patch"
---

Fix `--tauri-version 2` flag not working.

2 changes: 1 addition & 1 deletion src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl FromStr for TauriVersion {
fn from_str(s: &str) -> Result<Self, Self::Err> {
match s {
"1" => Ok(Self::V1),
"2" => Ok(Self::V1),
"2" => Ok(Self::V2),
_ => Err("unknown Tauri version"),
}
}
Expand Down

0 comments on commit cfa3e41

Please sign in to comment.