chore: use single-instance plugin as described by the docs

This commit is contained in:
zhom
2025-06-13 21:40:50 +04:00
parent 2394716ea3
commit 9ac662aee8
4 changed files with 22 additions and 0 deletions
+1
View File
@@ -70,6 +70,7 @@
"turbopack",
"unlisten",
"unrs",
"urlencoding",
"vercel",
"winreg",
"wiremock",
+17
View File
@@ -1018,6 +1018,7 @@ dependencies = [
"tauri-plugin-macos-permissions",
"tauri-plugin-opener",
"tauri-plugin-shell",
"tauri-plugin-single-instance",
"tempfile",
"tokio",
"tokio-test",
@@ -4500,6 +4501,22 @@ dependencies = [
"tokio",
]
[[package]]
name = "tauri-plugin-single-instance"
version = "2.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "97d0e07b40fb2eb13778e30778f5979347a2bf30e1b9d47f78ff7fe92d2e4b3d"
dependencies = [
"serde",
"serde_json",
"tauri",
"tauri-plugin-deep-link",
"thiserror 2.0.12",
"tracing",
"windows-sys 0.59.0",
"zbus",
]
[[package]]
name = "tauri-runtime"
version = "2.6.0"
+3
View File
@@ -39,6 +39,9 @@ async-trait = "0.1"
futures-util = "0.3"
urlencoding = "2.1"
[target."cfg(any(target_os = \"macos\", windows, target_os = \"linux\"))".dependencies]
tauri-plugin-single-instance = { version = "2", features = ["deep-link"] }
[target.'cfg(target_os = "macos")'.dependencies]
core-foundation="0.10"
objc2 = "0.6.1"
+1
View File
@@ -19,6 +19,7 @@
"shell:allow-spawn",
"shell:allow-stdin-write",
"deep-link:default",
"deep-link:allow-register",
"dialog:default",
"dialog:allow-open",
"macos-permissions:default",