Skip to content

DeepSeek Harness Tauri 桌面版 | Only 8mb installer, zero environment setup, preset plugins, Windows / macOS / Linux.

chore(deps): 升级 tauri 2.11.5 → 2.12.3 (#1058)

Mao Mr0870c01dcfd5
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 529df9e1..38232931 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -348,11 +348,11 @@ catalogs:
version: 1.4.1
tauri:
'@tauri-apps/api':
- specifier: ^2.11.1
- version: 2.11.1
+ specifier: ^2.12.3
+ version: 2.12.3
'@tauri-apps/cli':
- specifier: ^2.11.4
- version: 2.11.4
+ specifier: ^2.12.2
+ version: 2.12.2
'@tauri-apps/plugin-http':
specifier: ^2.6.0
version: 2.6.0
@@ -521,7 +521,7 @@ importers:
version: 5.101.4([email protected])
'@tauri-apps/api':
specifier: catalog:tauri
- version: 2.11.1
+ version: 2.12.3
'@tauri-apps/plugin-http':
specifier: catalog:tauri
version: 2.6.0(patch_hash=6bbec7f8a8e969a867d222e8b2b542d2dbd639ffbaf2184a4df47f330b6ad431)
@@ -789,7 +789,7 @@ importers:
'@tauri-apps/cli':
specifier: catalog:tauri
- version: 2.11.4
+ version: 2.12.2
'@testing-library/dom':
specifier: catalog:testing
version: 10.4.2
@@ -4626,79 +4626,82 @@ packages:
'@tauri-apps/[email protected]':
resolution: {integrity: sha512-M2FPuYND2m+wh5hfW9ZpSdxMPdEJovPBWwoHJmwUpysTYNHaOkVFN419m/K0LIgjb/7KU2vBgsUepJWugQCvAA==}
- '@tauri-apps/[email protected]':
- resolution: {integrity: sha512-1ryOF3ZhpZ/nemHV5zVwBQBz9jDGKmKPvWPADOhc83ig0P4bMc2iER4NbC6r9sjeIZ6RVQ4g3RZIYvezhcl4TQ==}
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-9s0PKw0p4r3kFq92jhpivYSp+cSht15o0gXpZxuQd0+dV9KCexEVkNaLELVoLdJWyoH4KlfQo5h3W2LIM8siJg==}
+
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-Lk3zaBTfzNvA7670Al5PNgo2M/95uaDPe1yp+ILJeDOmol87XiYuK5E5+FUbK5e6U6OORx9qpZdOo2U+5tETtQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [darwin]
- '@tauri-apps/[email protected]':
- resolution: {integrity: sha512-uFsGQAAfuyz1k/yGLmkWfkBlgKAqZfxqlHmLWx81QU27RJWfmbNHCIq8T8w1e+VClleIuZUjpHWfoE4E3DLo3A==}
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-2CyYjJ833JB3sKRz4B0W/Tv4oOVC16ws1bxdSCWj1XvrmanWwvZi99e5tNIoCHwHhcOm0jh+sh0PCGQyls6Z+w==}
engines: {node: '>= 10'}
cpu: [x64]
os: [darwin]
- '@tauri-apps/[email protected]':
- resolution: {integrity: sha512-IaHZn5CdBL21oUmjiVOS1ctw6Ip1O0pjp70FwOWmYz1myWe0SY96ZIj2FYf7pT0m8bI2h/hrs5ZbEXXh44/MkQ==}
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-uvt2xbone4JftKarelssi86Kqnl7JiG1Smh5+Ae+nZmtM+JUhTGmqkcqfUPXRW8Ygwog92POZvd4oGDN9j8eXQ==}
engines: {node: '>= 10'}
cpu: [arm]
os: [linux]
- '@tauri-apps/[email protected]':
- resolution: {integrity: sha512-N41/ukTRVe6XSuUTESuFdGeOW2i7k62tK+6gHK5Kd5/q5RPvvi19GaWAVPPb9u95HSGmTChSolBfzynUsssFaA==}
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-DZlDJ24u3tlocKOYqzR+b2M+Qr+5WFcoMBZ7EfdhHN5j3ZXwBBpms4G4gyNvPCrak5vMzmdZ65ecBXPJcC+5sA==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
libc: [glibc]
- '@tauri-apps/[email protected]':
- resolution: {integrity: sha512-v277UnT/fB64xAfSroL5N3Km3tLmvATWqJJw/wRI+g6o+HkeD0slyE7gOhNs1MbjE41R7bQOTxMVoL3aomUJmw==}
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-pb+RTZUYH/p0gR4j4ecCCq+FNfz3W3eKuUQvVEBn7MQZx6DzfLO7FaYzt2NyDKWpdNN3lP10mdzOvw3R5P5aAQ==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [linux]
libc: [musl]
- '@tauri-apps/[email protected]':
- resolution: {integrity: sha512-qqgNkQ2u1yZHxjhxsZaxUtRDW8dIqIYm33rx/mzwQv0SfY9x1B+iraj8vWeFiXjjSVVhEMepXSOts1TqPzvXNQ==}
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-nidEvDUJyHYNbIv9MUk6KiEix8IXfRh4Wj2G2SA5g8nFmgbBCwazUNWYiG/LhNeNbfZpBMLerRBUtoQ5K0GidA==}
engines: {node: '>= 10'}
cpu: [riscv64]
os: [linux]
libc: [glibc]
- '@tauri-apps/[email protected]':
- resolution: {integrity: sha512-2VRNWl84FOH0m2giiDkO2h0QXlcMJeX+zJDpI5kDIQAx6s+geF3v48F4DXfJez4GS/FdoDGnPnw1C2iYGbQ7bQ==}
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-gkXyYn3w+Xfc8nz/DleEbkm1M7bBuU2cejqUXNmI98cA2P5kp+oPmS4ALTorb1FaNWjpsKoYZBWsbS9BXxYFkQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
libc: [glibc]
- '@tauri-apps/[email protected]':
- resolution: {integrity: sha512-o9GyhYor/nc7xarmwDE3ka2szuW3uuZzXjHWh64Q8YX5AtSgxdQkFWzrY4O8KiGtVNvFBI14H3Q49Qj5TOIP/A==}
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-MrjgoZ09s8Hsn99XvxSNvK8NQTZxi7XiyK3FxxytzfHgz2jb3qUT69CZtsokRkN/zdi9rCgrMtq+w9XNICjcfQ==}
engines: {node: '>= 10'}
cpu: [x64]
os: [linux]
libc: [musl]
- '@tauri-apps/[email protected]':
- resolution: {integrity: sha512-ld5Ehb598m0VkYyylRPNeCFsBe/km0jxis6KgMpl3IGY6I/i1RwQXO05I1AsXUXO2WC6AvB/Lw4qTf/asiuEiQ==}
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-BR+CYM7iF3lkfyTtVkwMQU/s9hwegLpj3UqDjaxKCPmixQCa1csBBPy3C75V+FhLtOjIXNna4Gt6Vm9oxbV+qA==}
engines: {node: '>= 10'}
cpu: [arm64]
os: [win32]
- '@tauri-apps/[email protected]':
- resolution: {integrity: sha512-12Hxi0XX/H5VFxO/bGgHkFWhml9VMgEOu9CidjeCeTNQ1l6fpUlbiGgSP7CLI3PFtW9/FfbeHieZ+kyWK5H7CA==}
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-zODJo9l3TbNBM+GrO/yPqGeELNMK5cjIc+QHh1WQc3l8tD+jDZGTQyYuAxViCsM6Uh5uWJ//RnCZG9LXrvsXww==}
engines: {node: '>= 10'}
cpu: [ia32]
os: [win32]
- '@tauri-apps/[email protected]':
- resolution: {integrity: sha512-+vDiqBIU5dMISg/wNvX3sF+ZHfgJGJ5T0AcO+EHNXV9GGAG+P5fzodlDXD3QdKCRgZxMoCm5PPvj3BqLNjBthw==}
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-cQXI2ZaZmwBDt0XATCqASVanYizxkEE3ceQVlVHXaQ51HzsQUWA04c9Nz7LrrY2lgAu3jFMyat+8Yz3Z2R2qBA==}
engines: {node: '>= 10'}
cpu: [x64]
os: [win32]
- '@tauri-apps/[email protected]':
- resolution: {integrity: sha512-R8xGtMpwyetawSqm9kYOuMmEqkhUbvcUy8n0aNXIxollKBLESUu5f4Fx+64hgASYm1H+jSWq6jCW6zqTnH6hqQ==}
+ '@tauri-apps/[email protected]':
+ resolution: {integrity: sha512-PMSppzAnlT+BvZtRKuidxjRSm2r5t8kDpJ/czmmQUa0AtDNTwrjLE8vApK3phCWGg7isfnYL46Dl1jB4ArI0hA==}
engines: {node: '>= 10'}
hasBin: true
@@ -9152,6 +9155,7 @@ packages:
resolution: {integrity: sha512-z+kNuv1rwM1POQIufDUVrdNc/uGy0ueRVafCyDH39IdHxin4JXgB8DNGSPoqdIpcOpqUoRbNreK8NxENFmlhKw==}
engines: {node: '>=20.19.0'}
+ deprecated: Including an unexpected breaking change (copy behavior)
hasBin: true
peerDependencies:
'@arethetypeswrong/core': ^0.18.1
@@ -13141,52 +13145,54 @@ snapshots:
'@tauri-apps/[email protected]': {}
- '@tauri-apps/[email protected]':
+ '@tauri-apps/[email protected]': {}
+
+ '@tauri-apps/[email protected]':
optional: true
- '@tauri-apps/[email protected]':
+ '@tauri-apps/[email protected]':
optional: true
- '@tauri-apps/[email protected]':
+ '@tauri-apps/[email protected]':
optional: true
- '@tauri-apps/[email protected]':
+ '@tauri-apps/[email protected]':
optional: true
- '@tauri-apps/[email protected]':
+ '@tauri-apps/[email protected]':
optional: true
- '@tauri-apps/[email protected]':
+ '@tauri-apps/[email protected]':
optional: true
- '@tauri-apps/[email protected]':
+ '@tauri-apps/[email protected]':
optional: true
- '@tauri-apps/[email protected]':
+ '@tauri-apps/[email protected]':
optional: true
- '@tauri-apps/[email protected]':
+ '@tauri-apps/[email protected]':
optional: true
- '@tauri-apps/[email protected]':
+ '@tauri-apps/[email protected]':
optional: true
- '@tauri-apps/[email protected]':
+ '@tauri-apps/[email protected]':
optional: true
- '@tauri-apps/[email protected]':
+ '@tauri-apps/[email protected]':
optionalDependencies:
- '@tauri-apps/cli-darwin-arm64': 2.11.4
- '@tauri-apps/cli-darwin-x64': 2.11.4
- '@tauri-apps/cli-linux-arm-gnueabihf': 2.11.4
- '@tauri-apps/cli-linux-arm64-gnu': 2.11.4
- '@tauri-apps/cli-linux-arm64-musl': 2.11.4
- '@tauri-apps/cli-linux-riscv64-gnu': 2.11.4
- '@tauri-apps/cli-linux-x64-gnu': 2.11.4
- '@tauri-apps/cli-linux-x64-musl': 2.11.4
- '@tauri-apps/cli-win32-arm64-msvc': 2.11.4
- '@tauri-apps/cli-win32-ia32-msvc': 2.11.4
- '@tauri-apps/cli-win32-x64-msvc': 2.11.4
+ '@tauri-apps/cli-darwin-arm64': 2.12.2
+ '@tauri-apps/cli-darwin-x64': 2.12.2
+ '@tauri-apps/cli-linux-arm-gnueabihf': 2.12.2
+ '@tauri-apps/cli-linux-arm64-gnu': 2.12.2
+ '@tauri-apps/cli-linux-arm64-musl': 2.12.2
+ '@tauri-apps/cli-linux-riscv64-gnu': 2.12.2
+ '@tauri-apps/cli-linux-x64-gnu': 2.12.2
+ '@tauri-apps/cli-linux-x64-musl': 2.12.2
+ '@tauri-apps/cli-win32-arm64-msvc': 2.12.2
+ '@tauri-apps/cli-win32-ia32-msvc': 2.12.2
+ '@tauri-apps/cli-win32-x64-msvc': 2.12.2
'@tauri-apps/[email protected](patch_hash=6bbec7f8a8e969a867d222e8b2b542d2dbd639ffbaf2184a4df47f330b6ad431)':
dependencies:
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
index 0c7fd7e1..ba37ea90 100644
--- a/pnpm-workspace.yaml
+++ b/pnpm-workspace.yaml
@@ -233,8 +233,8 @@ catalogs:
tailwind-variants: ^3.3.1
valtio-define: ^1.4.1
tauri:
- '@tauri-apps/api': ^2.11.1
- '@tauri-apps/cli': ^2.11.4
+ '@tauri-apps/api': ^2.12.3
+ '@tauri-apps/cli': ^2.12.2
'@tauri-apps/plugin-http': ^2.6.0
testing:
'@shikijs/langs': 4.3.1
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index dd87f87b..c0c046d7 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -39,15 +39,15 @@ dependencies = [
[[package]]
name = "alloc-no-stdlib"
-version = "2.0.4"
+version = "3.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3"
+checksum = "c2fb6cfd47bf496ff64095c20eaba0c201404ee38714d4142fcfa1dc334fcc7a"
[[package]]
name = "alloc-stdlib"
-version = "0.2.4"
+version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0e76a019e91224d279006ff972f1e984179a6e9feb050adba6ce8274aef23195"
+checksum = "0b5c1865780388bfa186411ab5f247819487fc4864c6e9c3106611fa347586e1"
dependencies = [
"alloc-no-stdlib",
]
@@ -365,6 +365,12 @@ version = "0.22.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
+[[package]]
+name = "base64"
+version = "0.23.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
+
[[package]]
name = "base64ct"
version = "1.8.3"
@@ -440,9 +446,9 @@ dependencies = [
[[package]]
name = "brotli"
-version = "8.0.4"
+version = "9.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5cc91aac060a7a1e25823bdccbfb6af1875b88f17c6daac97894eed8207166b3"
+checksum = "f8b851b75c23ca7873623d612fe49bd1989aeb03d08fb9432187eb253d3d4c6b"
dependencies = [
"alloc-no-stdlib",
"alloc-stdlib",
@@ -451,9 +457,9 @@ dependencies = [
[[package]]
name = "brotli-decompressor"
-version = "5.0.3"
+version = "6.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a32acac15fe1967bc3986b2a6347dffc965602354ea6f450ad07e8bfd253583"
+checksum = "941cd9bd4ddab83cb46fa5a2d428f1c857b24ac78cb876cf7beb710840934bd7"
dependencies = [
"alloc-no-stdlib",
"alloc-stdlib",
@@ -580,12 +586,13 @@ dependencies = [
[[package]]
name = "cargo_toml"
-version = "0.22.3"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77"
+checksum = "82f4b26e751e711a5302649417f2da046dce6391b2ea30a4820f37462314f0b9"
dependencies = [
+ "semver",
"serde",
- "toml 0.9.12+spec-1.1.0",
+ "toml 1.1.4+spec-1.1.0",
]
[[package]]
@@ -608,13 +615,13 @@ checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"
[[package]]
name = "cfb"
-version = "0.7.3"
+version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f"
+checksum = "a347dcabdae9c31b0825fd6a8bed285ec9c2acb89c47827126d52fa4f59cece3"
dependencies = [
- "byteorder",
"fnv",
"uuid",
+ "web-time",
]
[[package]]
@@ -940,9 +947,9 @@ dependencies = [
[[package]]
name = "cssparser"
-version = "0.36.0"
+version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2"
+checksum = "8c9cdaae01d5ed7882b04d795e7f752f46ff52d2fa3b50a20d28c464510bba98"
dependencies = [
"cssparser-macros",
"dtoa-short",
@@ -953,22 +960,12 @@ dependencies = [
[[package]]
name = "cssparser-macros"
-version = "0.6.1"
+version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331"
+checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a"
dependencies = [
"quote",
- "syn 2.0.119",
-]
-
-[[package]]
-name = "ctor"
-version = "0.8.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98"
-dependencies = [
- "ctor-proc-macro",
- "dtor",
+ "syn 3.0.3",
]
[[package]]
@@ -981,12 +978,6 @@ dependencies = [
"linktime-proc-macro",
]
-[[package]]
-name = "ctor-proc-macro"
-version = "0.0.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1"
-
[[package]]
name = "darling"
version = "0.23.0"
@@ -1052,7 +1043,7 @@ dependencies = [
"flate2",
"futures-util",
"image",
- "json-patch",
+ "json-patch 3.0.1",
"libc",
"log",
"objc2-app-kit",
@@ -1090,9 +1081,9 @@ dependencies = [
"tracing-appender",
"tracing-log",
"tracing-subscriber",
- "tray-icon 0.25.0",
+ "tray-icon",
"webview2-com",
- "windows-core 0.61.2",
+ "windows-core 0.62.2",
"windows-sys 0.61.2",
"winreg 0.55.0",
"zip",
@@ -1189,6 +1180,15 @@ dependencies = [
"dirs-sys 0.5.0",
]
+[[package]]
+name = "dirs"
+version = "7.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f"
+dependencies = [
+ "dirs-sys 0.5.0",
+]
+
[[package]]
name = "dirs-sys"
version = "0.3.7"
@@ -1209,7 +1209,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users 0.5.2",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -1278,9 +1278,9 @@ dependencies = [
[[package]]
name = "dom_query"
-version = "0.27.0"
+version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89"
+checksum = "fac5fca71e65e94cc718a6e2af65d6e0f9c6027751c2aa562fbb5087fda639bc"
dependencies = [
"bit-set",
"cssparser",
@@ -1332,21 +1332,6 @@ dependencies = [
"dtoa",
]
-[[package]]
-name = "dtor"
-version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4"
-dependencies = [
- "dtor-proc-macro",
-]
-
-[[package]]
-name = "dtor-proc-macro"
-version = "0.0.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5"
-
[[package]]
name = "dunce"
version = "1.0.5"
@@ -1445,7 +1430,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -1896,7 +1881,7 @@ dependencies = [
"gobject-sys 0.21.5",
"libc",
"system-deps 7.0.8",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -2162,9 +2147,9 @@ dependencies = [
[[package]]
name = "html5ever"
-version = "0.38.0"
+version = "0.39.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2"
+checksum = "46a1761807faccc9a19e86944bbf40610014066306f96edcdedc2fb714bcb7b8"
dependencies = [
"log",
"markup5ever",
@@ -2297,7 +2282,7 @@ dependencies = [
"tokio",
"tower-service",
"tracing",
- "windows-registry 0.6.1",
+ "windows-registry",
]
[[package]]
@@ -2483,9 +2468,9 @@ dependencies = [
[[package]]
name = "infer"
-version = "0.19.0"
+version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7"
+checksum = "f4200d433cbd5178df7797c9c2e75b348b728e39631cf14520d1e2fc424201f4"
dependencies = [
"cfb",
]
@@ -2677,12 +2662,24 @@ version = "3.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "863726d7afb6bc2590eeff7135d923545e5e964f004c2ccf8716c25e70a86f08"
dependencies = [
- "jsonptr",
+ "jsonptr 0.6.3",
"serde",
"serde_json",
"thiserror 1.0.69",
]
+[[package]]
+name = "json-patch"
+version = "4.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7421438de105a0827e44fadd05377727847d717c80ce29a229f85fd04c427b72"
+dependencies = [
+ "jsonptr 0.7.1",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.20",
+]
+
[[package]]
name = "jsonptr"
version = "0.6.3"
@@ -2694,14 +2691,13 @@ dependencies = [
]
[[package]]
-name = "keyboard-types"
-version = "0.7.0"
+name = "jsonptr"
+version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a"
+checksum = "a5a3cc660ba5d72bce0b3bb295bf20847ccbb40fd423f3f05b61273672e561fe"
dependencies = [
- "bitflags 2.13.1",
"serde",
- "unicode-segmentation",
+ "serde_json",
]
[[package]]
@@ -2872,9 +2868,9 @@ checksum = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d"
[[package]]
name = "markup5ever"
-version = "0.38.0"
+version = "0.39.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862"
+checksum = "7122d987ec5f704ee56f6e5b41a7d93722e9aae27ae07cafa4036c4d3f9757de"
dependencies = [
"log",
"tendril",
@@ -2948,27 +2944,6 @@ dependencies = [
"pxfm",
]
-[[package]]
-name = "muda"
-version = "0.19.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1dd04e60bc0b07438a6771710ee1698f98f6ebbc7f89b61264af1563b8aeb878"
-dependencies = [
- "crossbeam-channel",
- "dpi",
- "gtk",
- "keyboard-types 0.7.0",
- "objc2",
- "objc2-app-kit",
- "objc2-core-foundation",
- "objc2-foundation",
- "once_cell",
- "png 0.18.1",
- "serde",
- "thiserror 2.0.20",
- "windows-sys 0.61.2",
-]
-
[[package]]
name = "muda"
version = "0.20.0"
@@ -2977,15 +2952,17 @@ checksum = "cca139e57da4383727f189e43e66e84fa372347027fc996f9f1a007ec0a37996"
dependencies = [
"crossbeam-channel",
"dpi",
- "keyboard-types 0.8.3",
+ "gtk",
+ "keyboard-types",
"objc2",
"objc2-app-kit",
"objc2-core-foundation",
"objc2-foundation",
"once_cell",
"png 0.18.1",
+ "serde",
"thiserror 2.0.20",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -3020,6 +2997,12 @@ dependencies = [
"thiserror 1.0.69",
]
+[[package]]
+name = "ndk-context"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"
+
[[package]]
name = "ndk-sys"
version = "0.6.0+11769913"
@@ -3098,7 +3081,7 @@ version = "0.50.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
dependencies = [
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -3516,7 +3499,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967"
dependencies = [
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -3935,7 +3918,7 @@ dependencies = [
"once_cell",
"socket2",
"tracing",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -4302,7 +4285,7 @@ dependencies = [
"errno",
"libc",
"linux-raw-sys",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -4458,9 +4441,9 @@ dependencies = [
[[package]]
name = "selectors"
-version = "0.36.1"
+version = "0.38.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c"
+checksum = "8adfa1c298912827b8a28b223b3b874357397ae706e6190acd9bf28cee99114d"
dependencies = [
"bitflags 2.13.1",
"cssparser",
@@ -4758,7 +4741,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
dependencies = [
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -4900,9 +4883,9 @@ dependencies = [
[[package]]
name = "swift-rs"
-version = "1.0.7"
+version = "1.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4057c98e2e852d51fdcfca832aac7b571f6b351ad159f9eda5db1655f8d0c4d7"
+checksum = "cefd87076fd385308ee4aff597256c902f1fbb4d031de1558efc12f8ffefadd9"
dependencies = [
"base64 0.21.7",
"serde",
@@ -5040,9 +5023,9 @@ dependencies = [
[[package]]
name = "tao"
-version = "0.35.3"
+version = "0.37.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d1c93047acf68669466a34690ac58cca7010bd1b201e1ec86f1fd0a75d3dd4a9"
+checksum = "f37f381f4e048e6cdf038b5705f8cf14ad108279d46eb968140a7b291aba9400"
dependencies = [
"bitflags 2.13.1",
"block2",
@@ -5060,20 +5043,20 @@ dependencies = [
"libc",
"log",
"ndk",
+ "ndk-context",
"ndk-sys",
"objc2",
"objc2-app-kit",
"objc2-foundation",
"objc2-ui-kit",
- "once_cell",
"parking_lot",
"percent-encoding",
"raw-window-handle",
"tao-macros",
"unicode-segmentation",
"url",
- "windows 0.61.3",
- "windows-core 0.61.2",
+ "windows 0.62.2",
+ "windows-core 0.62.2",
"windows-version",
"x11-dl",
]
@@ -5123,14 +5106,14 @@ dependencies = [
[[package]]
name = "tauri"
-version = "2.11.5"
+version = "2.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "667b20e2726d572dea2de7370da16e188eb06008faf9a92fab7cdc46791190b5"
+checksum = "c404ecf956ff241bf6b39dd688614724e1bf1f63255abb4fc46d1c40371672ea"
dependencies = [
"anyhow",
"bytes",
"cookie",
- "dirs 6.0.0",
+ "dirs 7.0.0",
"dunce",
"embed_plist",
"getrandom 0.3.4",
@@ -5144,7 +5127,7 @@ dependencies = [
"libc",
"log",
"mime",
- "muda 0.19.3",
+ "muda",
"objc2",
"objc2-app-kit",
"objc2-foundation",
@@ -5166,26 +5149,26 @@ dependencies = [
"tauri-utils",
"thiserror 2.0.20",
"tokio",
- "tray-icon 0.24.2",
+ "tray-icon",
"url",
"webkit2gtk",
"webview2-com",
"window-vibrancy",
- "windows 0.61.3",
+ "windows 0.62.2",
]
[[package]]
name = "tauri-build"
-version = "2.6.3"
+version = "2.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bc9ce40b16101cb6ea63d3e221567affd1c3a9205f95d7bc574941a10636b632"
+checksum = "2eea0b6302f82c574b21af6fc6ae6e86183b9280853c22621d0abf0936911ffc"
dependencies = [
"anyhow",
"cargo_toml",
- "dirs 6.0.0",
+ "dirs 7.0.0",
"glob",
"heck 0.5.0",
- "json-patch",
+ "json-patch 4.2.0",
"schemars 0.8.22",
"semver",
"serde",
@@ -5197,16 +5180,16 @@ dependencies = [
[[package]]
name = "tauri-codegen"
-version = "2.6.3"
+version = "2.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "08279169ff42f8fc45a1dbc9dcae888893ba95288142e5880c59b93a26d2cfc5"
+checksum = "02f468f9a9bcd404f57e5c191d91024e3de953d4b610f78c2907e7110615cb1c"
dependencies = [
- "base64 0.22.1",
+ "base64 0.23.1",
"brotli",
"ico",
- "json-patch",
+ "json-patch 4.2.0",
"plist",
- "png 0.17.16",
+ "png 0.18.1",
"proc-macro2",
"quote",
"semver",
@@ -5224,9 +5207,9 @@ dependencies = [
[[package]]
name = "tauri-macros"
-version = "2.6.3"
+version = "2.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e8b394794f399a421811d06966343e7933fcae92d59f5180b9388d1174497a45"
+checksum = "131bffec939b20642380317f8403a33c8888489925e14bb965ceaff0d949b1cb"
dependencies = [
"heck 0.5.0",
"proc-macro2",
@@ -5283,7 +5266,7 @@ dependencies = [
"thiserror 2.0.20",
"tracing",
"url",
- "windows-registry 0.5.3",
+ "windows-registry",
"windows-result 0.3.4",
]
@@ -5330,7 +5313,7 @@ dependencies = [
"thiserror 2.0.20",
"tokio",
"url",
- "urlpattern",
+ "urlpattern 0.3.0",
]
[[package]]
@@ -5357,7 +5340,7 @@ name = "tauri-plugin-notifications"
version = "0.5.0-rc.14"
dependencies = [
"color-backtrace",
- "ctor 1.0.13",
+ "ctor",
"log",
"maplit",
"notify-rust",
@@ -5481,15 +5464,15 @@ dependencies = [
"uuid",
"webkit2gtk",
"webview2-com",
- "windows 0.61.3",
- "windows-core 0.61.2",
+ "windows 0.62.2",
+ "windows-core 0.62.2",
]
[[package]]
name = "tauri-runtime"
-version = "2.11.3"
+version = "2.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b0b4bc95aed361b0019067d189a1174a603d460d0f6c72606512d59fc9c12ec8"
+checksum = "c2a57a2a9b8c8b7fc00d35b510fe808ded7f9f1b44fc1cdda6aee38632ea5413"
dependencies = [
"cookie",
"dpi",
@@ -5507,14 +5490,14 @@ dependencies = [
"url",
"webkit2gtk",
"webview2-com",
- "windows 0.61.3",
+ "windows 0.62.2",
]
[[package]]
name = "tauri-runtime-wry"
-version = "2.11.4"
+version = "2.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4e6fac707727b7a2f48e4ded90976324267371073edbb415ffb73bb0458d203f"
+checksum = "7f9e7e0c9f80a5130773cfabb6df4dc924518fb1b2c923726966804634b57d22"
dependencies = [
"gtk",
"http",
@@ -5532,26 +5515,26 @@ dependencies = [
"url",
"webkit2gtk",
"webview2-com",
- "windows 0.61.3",
+ "windows 0.62.2",
"wry",
]
[[package]]
name = "tauri-utils"
-version = "2.9.3"
+version = "2.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3e176a18e67764923c4f1ce66f25ae4abe5f688384d5eb1a0fa6c77f3d90f887"
+checksum = "2ff55a614843b9a3f010f211df637c94df2607175b8d0f6e0f4a7c19e18621ee"
dependencies = [
"anyhow",
"brotli",
"cargo_metadata",
- "ctor 0.8.0",
+ "ctor",
"dom_query",
"dunce",
"glob",
"http",
"infer",
- "json-patch",
+ "json-patch 4.2.0",
"log",
"memchr",
"phf",
@@ -5569,7 +5552,7 @@ dependencies = [
"thiserror 2.0.20",
"toml 1.1.4+spec-1.1.0",
"url",
- "urlpattern",
+ "urlpattern 0.6.0",
"uuid",
"walkdir",
]
@@ -5606,7 +5589,7 @@ dependencies = [
"getrandom 0.4.3",
"once_cell",
"rustix",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -5829,21 +5812,6 @@ dependencies = [
"toml_edit 0.20.2",
]
-[[package]]
-name = "toml"
-version = "0.9.12+spec-1.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863"
-dependencies = [
- "indexmap 2.14.0",
- "serde_core",
- "serde_spanned 1.1.1",
- "toml_datetime 0.7.5+spec-1.1.0",
- "toml_parser",
- "toml_writer",
- "winnow 0.7.15",
-]
-
[[package]]
name = "toml"
version = "1.1.4+spec-1.1.0"
@@ -5868,15 +5836,6 @@ dependencies = [
"serde",
]
-[[package]]
-name = "toml_datetime"
-version = "0.7.5+spec-1.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347"
-dependencies = [
- "serde_core",
-]
-
[[package]]
name = "toml_datetime"
version = "1.1.1+spec-1.1.0"
@@ -6059,28 +6018,6 @@ dependencies = [
"tracing-log",
]
-[[package]]
-name = "tray-icon"
-version = "0.24.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "045979e3f037cd18ad1cb2a419dfda133c5c29c9f3453370079f2255d46c257e"
-dependencies = [
- "crossbeam-channel",
- "dirs 6.0.0",
- "libappindicator",
- "muda 0.19.3",
- "objc2",
- "objc2-app-kit",
- "objc2-core-foundation",
- "objc2-core-graphics",
- "objc2-foundation",
- "once_cell",
- "png 0.18.1",
- "serde",
- "thiserror 2.0.20",
- "windows-sys 0.61.2",
-]
-
[[package]]
name = "tray-icon"
version = "0.25.0"
@@ -6088,8 +6025,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1d7d8cfccf1ae7ae9cba25a60daac8355bbaaf0fd07ff1c3af8f9872c4e4cb8"
dependencies = [
"crossbeam-channel",
+ "dirs 6.0.0",
"ksni",
- "muda 0.20.0",
+ "libappindicator",
+ "muda",
"objc2",
"objc2-app-kit",
"objc2-core-foundation",
@@ -6097,8 +6036,9 @@ dependencies = [
"objc2-foundation",
"once_cell",
"png 0.18.1",
+ "serde",
"thiserror 2.0.20",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -6138,7 +6078,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
dependencies = [
"memoffset",
"tempfile",
- "windows-sys 0.61.2",
+ "windows-sys 0.60.2",
]
[[package]]
@@ -6237,6 +6177,18 @@ dependencies = [
"url",
]
+[[package]]
+name = "urlpattern"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df16f50ef4cc145211879a3867ba757076b25dfee812040dcb0658bd9ae7904b"
+dependencies = [
+ "icu_properties",
+ "regex",
+ "serde",
+ "url",
+]
+
[[package]]
name = "utf8_iter"
version = "1.0.4"
@@ -6575,16 +6527,14 @@ dependencies = [
[[package]]
name = "webview2-com"
-version = "0.38.2"
+version = "0.39.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7130243a7a5b33c54a444e54842e6a9e133de08b5ad7b5861cd8ed9a6a5bc96a"
+checksum = "3f89fca7a704cee10dcb3654c1dbb8941d1783132f1917358af75bec37a7d7e6"
dependencies = [
"webview2-com-macros",
"webview2-com-sys",
- "windows 0.61.3",
- "windows-core 0.61.2",
- "windows-implement",
- "windows-interface",
+ "windows 0.62.2",
+ "windows-core 0.62.2",
]
[[package]]
@@ -6600,13 +6550,13 @@ dependencies = [
[[package]]
name = "webview2-com-sys"
-version = "0.38.2"
+version = "0.39.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c"
+checksum = "b3a07132775117d6065853d9d1178157b8c90e228de47129d6bce2c7edebedfb"
dependencies = [
"thiserror 2.0.20",
- "windows 0.61.3",
- "windows-core 0.61.2",
+ "windows 0.62.2",
+ "windows-core 0.62.2",
]
[[package]]
@@ -6637,7 +6587,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
]
[[package]]
@@ -6648,16 +6598,17 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "window-vibrancy"
-version = "0.6.0"
+version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c"
+checksum = "111e51caca442cafd9bab396628ac4d814880eaea4e63dfd76a12e9f342b5580"
dependencies = [
"objc2",
"objc2-app-kit",
"objc2-core-foundation",
"objc2-foundation",
+ "objc2-quartz-core",
"raw-window-handle",
- "windows-sys 0.59.0",
+ "windows-sys 0.60.2",
"windows-version",
]
@@ -6817,17 +6768,6 @@ dependencies = [
"windows-strings 0.4.2",
]
-[[package]]
-name = "windows-registry"
-version = "0.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"
-dependencies = [
- "windows-link 0.2.1",
- "windows-result 0.4.1",
- "windows-strings 0.5.1",
-]
-
[[package]]
name = "windows-result"
version = "0.3.4"
@@ -7131,12 +7071,6 @@ dependencies = [
"memchr",
]
-[[package]]
-name = "winnow"
-version = "0.7.15"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945"
-
[[package]]
name = "winnow"
version = "1.0.4"
@@ -7197,15 +7131,15 @@ checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
[[package]]
name = "wry"
-version = "0.55.1"
+version = "0.57.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "186f9871daa55fd9c016578b810d149de58367113db7fb72b462d2323ce19514"
+checksum = "a819957a01b3119af85e638a38d242af76dbc87d130dca67bfd0441072e21ff0"
dependencies = [
"base64 0.22.1",
"block2",
"cookie",
"crossbeam-channel",
- "dirs 6.0.0",
+ "dirs 7.0.0",
"dom_query",
"dpi",
"dunce",
@@ -7233,8 +7167,8 @@ dependencies = [
"webkit2gtk",
"webkit2gtk-sys",
"webview2-com",
- "windows 0.61.3",
- "windows-core 0.61.2",
+ "windows 0.62.2",
+ "windows-core 0.62.2",
"windows-version",
"x11-dl",
]
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 1e2732ba..e3aa1ead 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -148,17 +148,11 @@ core-foundation = "0.10"
[target.'cfg(unix)'.dependencies]
libc = "0.2"
-# Linux 托盘直接使用上游 tray-icon 0.25 的 KSNI 后端(实现见 src/desktop/linux_tray.rs,
-# 背景见 issue #386 / #438):
-# - tauri 2.11.5 仍固定 `tray-icon = "^0.24"`,而 0.24 在 Linux 上只有 libappindicator/GTK
-# 后端,该后端不上报任何托盘事件,单击/双击都无法唤起主窗口;
-# - tray-icon 0.25.0 新增的 KSNI 后端会把 SNI 的 Activate 转成
-# `TrayIconEvent::Click { button: Left }`;
-# - 但 tauri 2.x 的菜单类型来自 muda 0.19,与 tray-icon 0.25 的 muda 0.20 不是同一套类型
-# (`TrayIconBuilder::menu` 的 `ContextMenu` trait 不同),既无法 `cargo update` 也无法
-# `[patch.crates-io]` 把 tauri 的 tray-icon 顶到 0.25,tauri 3 目前只有 alpha。
-# 因此 Linux 上绕过 `tauri::tray` 自建托盘;tauri 2.x 跟进 bump 后可删除本依赖与
-# src/desktop/linux_tray.rs。`ksni` 特性同时避免再引入 GTK/libappindicator 后端。
+# Linux 托盘需要 tray-icon 的 KSNI 后端(背景见 issue #386 / #438):tauri 只开
+# `libappindicator`,而该后端在 Linux 上不上报任何托盘事件,单击无法唤起主窗口;这里
+# 借同一份 tray-icon 的 `ksni` 特性把后端换成 KSNI(两个特性同时开启时 tray-icon 优先
+# KSNI,见其 src/platform_impl/mod.rs 的 cfg)。tauri 2.12 起与本地共用同一版
+# tray-icon 0.25 / muda 0.20,托盘本身走 `tauri::tray`。
[target.'cfg(target_os = "linux")'.dependencies]
tray-icon = { version = "0.25", default-features = false, features = [ "ksni" ] }
@@ -183,8 +177,8 @@ tauri-plugin-notifications = { path = "vendor/tauri-plugin-notifications" }
debug = 1
[target.'cfg(windows)'.dependencies]
-webview2-com = "0.38"
-windows-core = "0.61"
+webview2-com = "0.39"
+windows-core = "0.62"
winreg = "0.55"
windows-sys = { version = "0.61", features = [
"Win32_Foundation",
diff --git a/src-tauri/src/desktop/builder.rs b/src-tauri/src/desktop/builder.rs
index e541f1fd..ad8d8ede 100644
--- a/src-tauri/src/desktop/builder.rs
+++ b/src-tauri/src/desktop/builder.rs
@@ -20,11 +20,7 @@ use windows_sys::Win32::UI::{
WindowsAndMessaging::{SendMessageW, HICON, ICON_BIG, ICON_SMALL, WM_GETICON, WM_SETICON},
};
-// 托盘相关的 tauri 类型只在非 Linux 路径使用:Linux 走 desktop::linux_tray 的
-// KSNI 托盘(见该文件的背景说明),届时这些导入会变成未使用。
-#[cfg(not(target_os = "linux"))]
use tauri::menu::{Menu, MenuEvent, MenuItem};
-#[cfg(not(target_os = "linux"))]
use tauri::tray::{MouseButton, TrayIconBuilder, TrayIconEvent};
#[cfg(target_os = "macos")]
@@ -50,9 +46,6 @@ const MACOS_VIEW_COMMANDS: [(&str, &str); 4] = [
#[cfg(windows)]
use crate::desktop::window::on_page_load;
use crate::desktop::window::{on_download, on_new_window};
-// 只在 tauri::tray 路径(Windows / macOS)里按短名使用;Linux 的 KSNI 托盘在
-// desktop::linux_tray 内自行引用,且下面单例回调用的是完整路径。
-#[cfg(not(target_os = "linux"))]
use crate::utils::show_main_window;
pub const SHELL_NAV_HEIGHT: u32 = 44;
@@ -170,18 +163,23 @@ pub fn setup(app_handle: tauri::AppHandle) {
/// 构建系统托盘。
///
-/// Linux 用上游 tray-icon 的 KSNI 后端自建(`tauri::tray` 固定依赖的 tray-icon 0.24
-/// 在 Linux 上不上报任何托盘事件,见 `desktop::linux_tray` 的平台说明与 issue #386);
-/// Windows / macOS 沿用 `tauri::tray`。
-#[cfg(target_os = "linux")]
+/// 托盘是可选壳层能力:Linux 桌面没有 SNI watcher(例如未装 AppIndicator 扩展的
+/// GNOME)或会话总线不可用时只记日志,不让应用启动失败。
pub fn tray<R: Runtime>(app: &tauri::AppHandle<R>) -> tauri::Result<()> {
- crate::desktop::linux_tray::build(app);
+ #[cfg(target_os = "linux")]
+ if let Err(error) = build_tray(app) {
+ log::warn!("[tray] LINUX_TRAY_FAILED: {error}");
+ }
+ #[cfg(not(target_os = "linux"))]
+ build_tray(app)?;
Ok(())
}
-/// 构建系统托盘(Windows / macOS:`tauri::tray`)。
-#[cfg(not(target_os = "linux"))]
-pub fn tray<R: Runtime>(app: &tauri::AppHandle<R>) -> tauri::Result<()> {
+/// Linux 后端由 Cargo.toml 里 `tray-icon` 的 `ksni` 特性选定(tauri 自己只开
+/// libappindicator,而后者在 Linux 上不上报托盘事件,见 issue #386);tauri 在
+/// `App::run` 里给同一个 tray-icon / muda 实例装全局处理器,因此 Linux 上同样能收到
+/// 单击与菜单事件。
+fn build_tray<R: Runtime>(app: &tauri::AppHandle<R>) -> tauri::Result<()> {
// 平台差异的托盘图标策略:
// - macOS:使用 scoped template 透明图标(NSImage template),由系统按菜单栏
// 深浅/半透明材质自动着色,呈现与系统一致的半透明玻璃观感,而非彩色方块。
@@ -1837,6 +1835,14 @@ pub fn builder() -> tauri::Builder<tauri::Wry> {
log::error!("[activation] APP_HIDE_FAILED: {error}");
}
}
+ // 隐藏窗口**不会**停掉页面里的动画 tick:WebView2 的「隐藏后照跑」是
+ // By Design 行为(WebView2Feedback #3207),微软那边的建议是按 webview
+ // 可见性停 tick,而不是把窗口移出屏幕。`background_throttling()` 只在
+ // WKWebView 上生效(wry CHANGELOG 0.48.1),Windows/WebView2 上是空转
+ // API;tauri/wry 也都不调用 `TrySuspendAsync`(WebView2Feedback #2398),
+ // 最小化同样不改变 webview 可见性(tauri-runtime-wry 只在窗口 Show/Hide
+ // 时 `set_visible`)。要真正停 tick 只能显式把 webview 可见性设为 false
+ // (已有的 `with_webview` 通路,webview2-com 已是直接依赖)。
#[cfg(not(target_os = "macos"))]
let _ = window.hide();
}
diff --git a/src-tauri/src/desktop/linux_tray.rs b/src-tauri/src/desktop/linux_tray.rs
deleted file mode 100644
index 2cf4ed63..00000000
--- a/src-tauri/src/desktop/linux_tray.rs
+++ /dev/null
@@ -1,133 +0,0 @@
-//! Linux 系统托盘(KSNI / StatusNotifierItem)。
-//!
-//! 背景(issue #386 / #438):本应用此前在 Linux 上走 `tauri::tray`,而 tauri 2.11.5
-//! 固定依赖的 tray-icon 0.24.2 在 Linux 上只有 libappindicator/GTK 后端,该后端**完全
-//! 不上报托盘事件**(上游 tauri-apps/tray-icon#104),因此单击/双击托盘都无法唤起主
-//! 窗口,只能走托盘菜单里的「打开面板」。
-//!
-//! 上游 tray-icon 0.25.0 合并了 KSNI 后端:SNI 的 `Activate`(左键单击)会被映射成
-//! `TrayIconEvent::Click { button: Left, .. }`,即 Linux 上终于能收到单击事件。但
-//! tauri 2.x 的菜单类型来自 muda 0.19,而 tray-icon 0.25 换成了 muda 0.20
-//! (`TrayIconBuilder::menu` 的 `ContextMenu` 不是同一个 trait),tauri 2.11.5 的
-//! `tray-icon = "^0.24"` 既无法 `cargo update` 也无法 `[patch.crates-io]` 顶到 0.25;
-//! tauri 3 目前只有 alpha。
-//!
-//! 因此 Linux 上绕过 `tauri::tray`,直接用同一份上游 crate(`tray-icon` 0.25 的 `ksni`
-//! 后端,见 Cargo.toml 里的 `cfg(target_os = "linux")` 依赖)自建托盘;Windows / macOS
-//! 继续走 `tauri::tray`(两边事件上报本就正常,也避免在 macOS 上让 muda 0.19 / 0.20
-//! 两套 ObjC 菜单实现并存)。tauri 2.x 跟进 bump tray-icon 后,本文件与那份依赖即可删除。
-//!
-//! 事件为什么不会被 tauri 抢走:tauri 在 `App::run` 里会给**它自己依赖的** muda 0.19 /
-//! tray-icon 0.24 装全局处理器(`muda::MenuEvent::set_event_handler` /
-//! `tray_icon::TrayIconEvent::set_event_handler`),而同一 crate 的不同 semver 大版本在
-//! 二进制里是两份独立实例、各自带静态通道,所以这里用的 0.20 / 0.25 仍能从 `receiver()`
-//! 拿到事件。反过来说,只要还在这条“自建托盘”路径上,就不要混用 tauri 的菜单/托盘类型。
-
-use tauri::{AppHandle, Runtime};
-
-use crate::utils::show_main_window;
-
-/// 构建 Linux 托盘。
-///
-/// 托盘是可选壳层能力:Linux 桌面没有 SNI watcher(例如未装 AppIndicator 扩展的
-/// GNOME)或会话总线不可用时,只记日志,不让应用启动失败——与 `tauri::tray` 在
-/// macOS/Windows 上的失败语义差异在此显式收口。
-pub fn build<R: Runtime>(app: &AppHandle<R>) {
- if let Err(error) = build_inner(app) {
- log::warn!("[tray] LINUX_TRAY_FAILED: {error}");
- }
-}
-
-fn build_inner<R: Runtime>(app: &AppHandle<R>) -> Result<(), String> {
- use tray_icon::menu::{Menu, MenuItem};
- use tray_icon::{Icon, TrayIconBuilder};
-
- // 菜单文案与 `tauri::tray` 版本保持一致,同走 config::i18n。
- let open_label = crate::config::i18n::t("menu.open_panel");
- let quit_label = crate::config::i18n::t("menu.quit");
- let menu = Menu::new();
- menu.append_items(&[
- &MenuItem::with_id("open", open_label, true, None),
- &MenuItem::with_id("quit", quit_label, true, None),
- ])
- .map_err(|error| format!("LINUX_TRAY_MENU_FAILED: {error}"))?;
-
- let mut builder = TrayIconBuilder::new()
- .with_menu(Box::new(menu))
- .with_tooltip(crate::desktop::product_name(app))
- .with_menu_on_left_click(false);
- if let Some(icon) = app.default_window_icon() {
- match Icon::from_rgba(icon.rgba().to_vec(), icon.width(), icon.height()) {
- Ok(icon) => builder = builder.with_icon(icon),
- // 图标无效不该连累托盘本身:没有图标仍能收到单击/菜单事件。
- Err(error) => log::warn!("[tray] LINUX_TRAY_ICON_INVALID: {error}"),
- }
- }
-
- let tray = builder
- .build()
- .map_err(|error| format!("LINUX_TRAY_BUILD_FAILED: {error}"))?;
- // 托盘必须活到进程结束:`TrayIcon` 析构会注销 SNI 项(图标从托盘消失)。它与进程
- // 同寿命,且没有 Send/Sync 约束,直接泄漏一份句柄比引入包装类型更直接。
- let _ = Box::leak(Box::new(tray));
-
- spawn_event_forwarders(app)
-}
-
-/// KSNI 后端在它自己的线程上投递事件,这里各起一个消费线程把事件送回主线程执行。
-fn spawn_event_forwarders<R: Runtime>(app: &AppHandle<R>) -> Result<(), String> {
- use tray_icon::menu::MenuEvent;
- use tray_icon::{MouseButton, TrayIconEvent};
-
- // 左键单击(SNI Activate)→ 打开主窗口,这正是 issue #386 要修的行为。
- // KSNI 后端只在 Activate 时发一次 Click/Up,不区分物理上的单击与双击(双击会
- // 收到两次),因此这里不必额外匹配 DoubleClick。
- let click_app = app.clone();
- std::thread::Builder::new()
- .name("linux-tray-click".into())
- .spawn(move || {
- for event in TrayIconEvent::receiver() {
- if let TrayIconEvent::Click {
- button: MouseButton::Left,
- ..
- } = event
- {
- on_main_thread(&click_app, |app| show_main_window(app));
- }
- }
- })
- .map_err(|error| format!("LINUX_TRAY_CLICK_THREAD_FAILED: {error}"))?;
-
- // 托盘菜单:KSNI 把菜单项的 activate 回调(muda 快照里携带的)直接接到 D-Bus 菜单上,
- // 点击后经 muda 的 MenuEvent 通道出来,语义与 `tauri::tray` 的 "open" / "quit" 对齐。
- let menu_app = app.clone();
- std::thread::Builder::new()
- .name("linux-tray-menu".into())
- .spawn(move || {
- for event in MenuEvent::receiver() {
- match event.id().as_ref() {
- "open" => on_main_thread(&menu_app, |app| show_main_window(app)),
- "quit" => on_main_thread(&menu_app, |app| app.exit(0)),
- _ => {}
- }
- }
- })
- .map_err(|error| format!("LINUX_TRAY_MENU_THREAD_FAILED: {error}"))?;
-
- Ok(())
-}
-
-/// 把动作送回主线程执行。
-///
-/// `run_on_main_thread` 会借用 `app`,而闭包里还要用同一份句柄,所以先克隆出两份:
-/// 一份用于投递,一份交给主线程上的动作。
-fn on_main_thread<R: Runtime>(
- app: &AppHandle<R>,
- action: impl FnOnce(&AppHandle<R>) + Send + 'static,
-) {
- let task_app = app.clone();
- let main_app = app.clone();
- if let Err(error) = task_app.run_on_main_thread(move || action(&main_app)) {
- log::warn!("[tray] LINUX_TRAY_MAIN_THREAD_FAILED: {error}");
- }
-}
diff --git a/src-tauri/src/desktop/mod.rs b/src-tauri/src/desktop/mod.rs
index bdf052ec..374c99b3 100644
--- a/src-tauri/src/desktop/mod.rs
+++ b/src-tauri/src/desktop/mod.rs
@@ -5,8 +5,6 @@ pub mod builder;
pub mod compat;
pub mod deep_link;
pub mod frame_log;
-#[cfg(target_os = "linux")]
-pub mod linux_tray;
pub mod notification;
pub mod paste;
pub mod payload;
diff --git a/src-tauri/src/desktop/window.rs b/src-tauri/src/desktop/window.rs
index 2577d041..f0c7b7b8 100644
--- a/src-tauri/src/desktop/window.rs
+++ b/src-tauri/src/desktop/window.rs
@@ -136,7 +136,7 @@ pub fn quit_app(app_handle: AppHandle<Wry>) {
/// 壳层「帮助 → 切换开发者工具」:开/关调用方所在窗口的 WebView 检查器。
///
/// 「切换」只能做到近似:只有 macOS 的 wkwebview 如实回报检查器状态;
-/// Windows 侧(wry 0.55 + WebView2)`is_devtools_open()` 恒为 false 且
+/// Windows 侧(wry 0.57 + WebView2)`is_devtools_open()` 恒为 false 且
/// `close_devtools()` 是空实现,重复调用等价于再次打开/聚焦,不会误关。
#[tauri::command]
pub fn toggle_devtools(window: WebviewWindow<Wry>) {
diff --git a/src-tauri/vendor/tauri-plugin-wdio-webdriver/Cargo.toml b/src-tauri/vendor/tauri-plugin-wdio-webdriver/Cargo.toml
index e86f1119..8e2d1c1a 100644
--- a/src-tauri/vendor/tauri-plugin-wdio-webdriver/Cargo.toml
+++ b/src-tauri/vendor/tauri-plugin-wdio-webdriver/Cargo.toml
@@ -151,14 +151,14 @@ features = [
]
[target.'cfg(target_os = "windows")'.dependencies.webview2-com]
-version = "0.38"
+version = "0.39"
[target.'cfg(target_os = "windows")'.dependencies.windows]
-version = "0.61"
+version = "0.62"
features = [
"Win32_System_Com",
"Win32_System_WinRT",
]
[target.'cfg(target_os = "windows")'.dependencies.windows-core]
-version = "0.61"
+version = "0.62"