Skip to content

Commit 96cff24

Browse files
committed
fix: remove tauri_window_plugin from --alpha templates
1 parent a5e0819 commit 96cff24

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"create-tauri-app": "patch"
3+
"create-tauri-app-js": "patch"
4+
---
5+
6+
Fix `--alpha` templates generating an incorrect `main.rs` that failed to compile.
7+

packages/cli/fragments/_base_/src-tauri/src/main.rs.lts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ fn greet(name: &str) -> String {
1111

1212
fn main() {
1313
tauri::Builder::default()
14-
{% if alpha %}.plugin(tauri_plugin_window::init())
15-
.plugin(tauri_plugin_shell::init())
14+
{% if alpha %}.plugin(tauri_plugin_shell::init())
1615
{% endif %}.invoke_handler(tauri::generate_handler![greet])
1716
.run(tauri::generate_context!())
1817
.expect("error while running tauri application");

0 commit comments

Comments
 (0)