add tauri controls

This commit is contained in:
Ren Amamiya
2023-07-29 15:42:44 +07:00
parent aca17f104e
commit 996ba3f82d
5 changed files with 73 additions and 15 deletions

11
src-tauri/Cargo.lock generated
View File

@@ -2585,6 +2585,7 @@ dependencies = [
"tauri-plugin-stronghold",
"tauri-plugin-updater",
"tauri-plugin-upload",
"tauri-plugin-window",
]
[[package]]
@@ -5040,6 +5041,16 @@ dependencies = [
"tokio-util",
]
[[package]]
name = "tauri-plugin-window"
version = "2.0.0-alpha.0"
source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v2#6f01bc11ab5be762d6cbe0ca924f15cdde47ce0d"
dependencies = [
"serde",
"tauri",
"thiserror",
]
[[package]]
name = "tauri-runtime"
version = "0.13.0-alpha.6"

View File

@@ -30,6 +30,7 @@ tauri-plugin-notification = { git = "https://github.com/tauri-apps/plugins-works
tauri-plugin-app = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-process = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-os = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
tauri-plugin-window = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
sqlx-cli = { version = "0.7.0", default-features = false, features = [
"sqlite",
] }

View File

@@ -143,6 +143,7 @@ fn main() {
.plugin(tauri_plugin_app::init())
.plugin(tauri_plugin_process::init())
.plugin(tauri_plugin_os::init())
.plugin(tauri_plugin_window::init())
.setup(|app| {
#[cfg(target_os = "macos")]
let main_window = app.get_window("main").unwrap();