Skip to content

Commit 76081c6

Browse files
committed
add plugin-app, os, shell (.shared)
1 parent 7b4e318 commit 76081c6

File tree

4 files changed

+149
-20
lines changed

4 files changed

+149
-20
lines changed

templates/.shared/src-tauri/Cargo.lock

Lines changed: 142 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/.shared/src-tauri/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ tauri-build = { version = "2.0.0-alpha.6", features = [] }
1616
tauri = { version = "2.0.0-alpha.10", features = [] }
1717
serde = { version = "1.0", features = ["derive"] }
1818
serde_json = "1.0"
19+
tauri-plugin-app = "2.0.0-alpha"
20+
tauri-plugin-os = "2.0.0-alpha"
21+
tauri-plugin-shell = "2.0.0-alpha"
1922
tauri-plugin-window = "2.0.0-alpha"
2023

2124
[features]

templates/.shared/src-tauri/src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ fn greet(name: &str) -> String {
1313
fn main() {
1414
tauri::Builder::default()
1515
.invoke_handler(tauri::generate_handler![greet])
16+
.plugin(tauri_plugin_app::init())
17+
.plugin(tauri_plugin_os::init())
18+
.plugin(tauri_plugin_shell::init())
1619
.plugin(tauri_plugin_window::init())
1720
.run(tauri::generate_context!())
1821
.expect("error while running tauri application");

templates/.shared/src-tauri/tauri.conf.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,7 @@
5151
"scheme": "https",
5252
"domain": "tauri.localhost",
5353
"windows": ["main"],
54-
"plugins": [
55-
"clipboard",
56-
"path",
57-
"dialog",
58-
"fs",
59-
"shell",
60-
"window",
61-
"windows"
62-
]
54+
"plugins": ["app", "shell", "os", "event", "window"]
6355
}
6456
]
6557
},

0 commit comments

Comments
 (0)