From 94e785c75c12a6344ab2be6fc4054774b0e81de2 Mon Sep 17 00:00:00 2001 From: coolcoala Date: Tue, 12 Aug 2025 21:19:26 +0300 Subject: [PATCH] fixed deeplinks on windows --- package.json | 1 + pnpm-lock.yaml | 10 ++++++++++ src-tauri/Cargo.lock | 5 +++-- src-tauri/Cargo.toml | 4 ++-- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 44d0d0f7..fb05a417 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,7 @@ "@tanstack/react-table": "^8.21.3", "@tauri-apps/api": "2.5.0", "@tauri-apps/plugin-clipboard-manager": "^2.2.2", + "@tauri-apps/plugin-deep-link": "~2", "@tauri-apps/plugin-dialog": "^2.2.2", "@tauri-apps/plugin-fs": "^2.3.0", "@tauri-apps/plugin-global-shortcut": "^2.2.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 01c45c64..f2b8096d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -92,6 +92,9 @@ importers: '@tauri-apps/plugin-clipboard-manager': specifier: ^2.2.2 version: 2.3.0 + '@tauri-apps/plugin-deep-link': + specifier: ~2 + version: 2.4.1 '@tauri-apps/plugin-dialog': specifier: ^2.2.2 version: 2.3.0 @@ -2199,6 +2202,9 @@ packages: '@tauri-apps/plugin-clipboard-manager@2.3.0': resolution: {integrity: sha512-81NOBA2P+OTY8RLkBwyl9ZR/0CeggLub4F6zxcxUIfFOAqtky7J61+K/MkH2SC1FMxNBxrX0swDuKvkjkHadlA==} + '@tauri-apps/plugin-deep-link@2.4.1': + resolution: {integrity: sha512-I8Bo+spcAKGhIIJ1qN/gapp/Ot3mosQL98znxr975Zn2ODAkUZ++BQ9FnTpR7PDwfIl5ANSGdIW/YU01zVTcJw==} + '@tauri-apps/plugin-dialog@2.3.0': resolution: {integrity: sha512-ylSBvYYShpGlKKh732ZuaHyJ5Ie1JR71QCXewCtsRLqGdc8Is4xWdz6t43rzXyvkItM9syNPMvFVcvjgEy+/GA==} @@ -5779,6 +5785,10 @@ snapshots: dependencies: '@tauri-apps/api': 2.6.0 + '@tauri-apps/plugin-deep-link@2.4.1': + dependencies: + '@tauri-apps/api': 2.6.0 + '@tauri-apps/plugin-dialog@2.3.0': dependencies: '@tauri-apps/api': 2.6.0 diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 9c8ecb9d..cbf7a79e 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -7146,9 +7146,9 @@ dependencies = [ [[package]] name = "tauri-plugin-deep-link" -version = "2.4.0" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab261eb006db10ab478e3fbb5a4e2692df3f7eb3e28300ee2b64428979167ed0" +checksum = "1fec67f32d7a06d80bd3dc009fdb678c35a66116d9cb8cd2bb32e406c2b5bbd2" dependencies = [ "dunce", "rust-ini", @@ -7305,6 +7305,7 @@ dependencies = [ "serde", "serde_json", "tauri", + "tauri-plugin-deep-link", "thiserror 2.0.12", "tracing", "windows-sys 0.60.2", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 43910d84..7d410eec 100755 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -63,7 +63,6 @@ tauri-plugin-dialog = "2.3.0" tauri-plugin-fs = "2.4.0" tauri-plugin-process = "2.3.0" tauri-plugin-clipboard-manager = "2.3.0" -tauri-plugin-deep-link = "2.4.0" tauri-plugin-devtools = "2.0.0" tauri-plugin-window-state = "2.3.0" zip = "4.2.0" @@ -85,6 +84,7 @@ sha2 = "0.10.9" hex = "0.4.3" scopeguard = "1.2.0" tauri-plugin-notification = "2.3.0" +tauri-plugin-deep-link = "2" [target.'cfg(windows)'.dependencies] runas = "=1.2.0" @@ -110,7 +110,7 @@ users = "0.11.0" [target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies] tauri-plugin-autostart = "2.5.0" tauri-plugin-global-shortcut = "2.3.0" -tauri-plugin-single-instance = "2" +tauri-plugin-single-instance = { version = "2.0.0", features = ["deep-link"] } tauri-plugin-updater = "2.9.0" [features]