Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

build: tauri-cli 2.11.5, updater plugin 2.12.0 with requireSignedVersion, vite 8.1.6

purpled58ef1671a04
diff --git a/.github/actions/windows-signpath-finish/action.yml b/.github/actions/windows-signpath-finish/action.yml
index 4756a132..b59899bf 100644
--- a/.github/actions/windows-signpath-finish/action.yml
+++ b/.github/actions/windows-signpath-finish/action.yml
@@ -68,8 +68,15 @@ runs:
$dist = Join-Path $env:RUNNER_TEMP 'signpath/dist'
node scripts/windows-signpath.mjs updater-artifacts $signed $dist
if ($LASTEXITCODE -ne 0) { throw "the updater archives could not be written" }
+ # The version goes into the trusted comment (tauri-cli 2.11.5 and up).
+ # The app requires it (requireSignedVersion in tauri.conf.json): a
+ # signature without it is refused by every install from 3.0.9 on, so
+ # these files would never install. `tauri build` fills it in by itself
+ # on the other lanes; signing by hand has to name it.
+ $version = (Get-Content src-tauri/tauri.conf.json -Raw | ConvertFrom-Json).version
+ if (-not $version) { throw "src-tauri/tauri.conf.json has no version to bind the updater signatures to" }
foreach ($file in @(Get-ChildItem -File -Path $dist)) {
- npx tauri signer sign $file.FullName | Out-Null
+ npx tauri signer sign --app-version $version $file.FullName | Out-Null
if ($LASTEXITCODE -ne 0) { throw "tauri signer sign failed for $($file.Name)" }
if (-not (Test-Path "$($file.FullName).sig")) { throw "no updater signature was written for $($file.Name)" }
}
diff --git a/package-lock.json b/package-lock.json
index 4ab2f551..fe685fb0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -15,7 +15,7 @@
"@react-three/fiber": "^9.5.0",
"@supabase/supabase-js": "^2.110.0",
"@tauri-apps/plugin-shell": "^2.3.5",
- "@tauri-apps/plugin-updater": "^2.10.1",
+ "@tauri-apps/plugin-updater": "2.12.0",
"@types/react-syntax-highlighter": "^15.5.13",
"@types/uuid": "^10.0.0",
"dotenv": "^17.3.1",
@@ -41,8 +41,8 @@
"@eslint/js": "^9.39.4",
"@playwright/test": "^1.61.1",
"@tailwindcss/vite": "^4.2.2",
- "@tauri-apps/api": "^2.10.1",
- "@tauri-apps/cli": "2.11.4",
+ "@tauri-apps/api": "2.10.1",
+ "@tauri-apps/cli": "2.11.5",
"@testing-library/react": "^16.3.3",
"@types/node": "^24.12.0",
"@types/react": "^19.2.14",
@@ -56,7 +56,7 @@
"madge": "^8.0.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.57.0",
- "vite": "^8.0.1",
+ "vite": "8.1.6",
"vitest": "^4.1.11"
},
"engines": {
@@ -595,21 +595,21 @@
}
},
"node_modules/@emnapi/core": {
- "version": "1.10.0",
- "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz",
- "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==",
+ "version": "1.11.1",
+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.1.tgz",
+ "integrity": "sha512-RSvbQmHzdKzNsLYa/wHrbc3KN4sYLKAdPZxqiM2HATqv/SBk2/ENSHpvXGaLOMcsAyz0poEGqkmmKYG3OWiJEQ==",
"dev": true,
"license": "MIT",
"optional": true,
"dependencies": {
- "@emnapi/wasi-threads": "1.2.1",
+ "@emnapi/wasi-threads": "1.2.2",
"tslib": "^2.4.0"
}
},
"node_modules/@emnapi/runtime": {
- "version": "1.10.0",
- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz",
- "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==",
+ "version": "1.11.1",
+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.1.tgz",
+ "integrity": "sha512-vgj7R3y3Wgx24IQaGPA/R6YFXLHVMOZ0uVEyIQPaWs+rd1AzfEMXlAC22FYwO1XkKR6NPsq7mUandH8oIRdZFw==",
"dev": true,
"license": "MIT",
"optional": true,
@@ -618,9 +618,9 @@
}
},
"node_modules/@emnapi/wasi-threads": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz",
- "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==",
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.2.tgz",
+ "integrity": "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA==",
"dev": true,
"license": "MIT",
"optional": true,
@@ -1203,28 +1203,31 @@
}
},
"node_modules/@napi-rs/wasm-runtime": {
- "version": "1.1.5",
- "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.5.tgz",
- "integrity": "sha512-AWPoBRJ9tsnVhor4sjO7rkni+7p+2IAEFj6cx06UgP10jkQHqay/36uRV/bFkgrh18D9vb4cr8Q0Pthskgzy+Q==",
+ "version": "1.2.5",
+ "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.5.tgz",
+ "integrity": "sha512-HshSvXzmBxNzqejd3k/KemgQ3hdREUYFRRrgxOZ+gPljDIsO2SDZrVZMd4Z/HsxudQbE62OVyVFE8z9BCurfjA==",
"dev": true,
"license": "MIT",
"optional": true,
"dependencies": {
- "@tybys/wasm-util": "^0.10.2"
+ "@tybys/wasm-util": "^0.10.3"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=23.5.0"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/Brooooooklyn"
},
"peerDependencies": {
- "@emnapi/core": "^1.7.1",
- "@emnapi/runtime": "^1.7.1"
+ "@emnapi/core": "^1.7.1 || 2.0.0-beta.2",
+ "@emnapi/runtime": "^1.7.1 || 2.0.0-beta.2"
}
},
"node_modules/@oxc-project/types": {
- "version": "0.133.0",
- "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.133.0.tgz",
- "integrity": "sha512-KzkdCd6Uxqnf6l3HOw1xfatAlUURA0g14cvBYFyJ5SaNOQbOUvBr9PKArcPcrNIeRsBdgcUzOGrhKveVpvOIGA==",
+ "version": "0.139.0",
+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.139.0.tgz",
+ "integrity": "sha512-r9gHphtCs+1M7J0pw6Sn/hh/Wpa/iQrOOkrNAlVLF/gHq+/CJmHIWKKUUhdWjcD6CIa8idarspCsASiXCXvFUw==",
"dev": true,
"license": "MIT",
"funding": {
@@ -1433,9 +1436,9 @@
}
},
"node_modules/@rolldown/binding-android-arm64": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.3.tgz",
- "integrity": "sha512-454rs7jHngixp/NMxd5srYD57OnzSlZ/eFTETjORQHLwJG1lRtmNOJcBerZlfu4GjKqeq8aCCIQrMdHyhI51Hw==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.1.5.tgz",
+ "integrity": "sha512-lZg8fqIv2v7FF237bwMgzGZEJvGL79/s5knJ/i6FmsGF4XXlzccZ4jb+TrFIxtSSxFtIpdsgrPZeMk1I9AFcyQ==",
"cpu": [
"arm64"
],
@@ -1450,9 +1453,9 @@
}
},
"node_modules/@rolldown/binding-darwin-arm64": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.3.tgz",
- "integrity": "sha512-PcAhP+ynjURNyy8SKGl5DQP94aGuB/7JrXJb/t7P+hanXvQVMWzUvRRhBAcg/lNRadBhoUPqSoP4xw5tR/KBEA==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.1.5.tgz",
+ "integrity": "sha512-51Bnx9pNiMRKSUNtBfySkNJ9vMU9Hh3I1ozDd6gyPPYzaXCfnptUcEZxXGYFn+ul2dtcMUiqGR1Yai2K10uoTw==",
"cpu": [
"arm64"
],
@@ -1467,9 +1470,9 @@
}
},
"node_modules/@rolldown/binding-darwin-x64": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.3.tgz",
- "integrity": "sha512-9YpfeUvSE2RS7wysJ81uOZkXJz7f7Q55H2Gvp3VEw/EsahqDtrphrZ0EwDLK5vvKOzaCrBsjF8JmnMLcUt78Gg==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.1.5.tgz",
+ "integrity": "sha512-Tm+gbfC0aHu1tBA/JvKQh32S0K6YgCHkiAF4/W6xX0K0RmNuc94VeK419dJoE65R5aRxmo+noZQSWrAMF6yb6g==",
"cpu": [
"x64"
],
@@ -1484,9 +1487,9 @@
}
},
"node_modules/@rolldown/binding-freebsd-x64": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.3.tgz",
- "integrity": "sha512-yB1IlAsSNHncV6SCTL27/MVGR5htvQsoGxIv5KMGXALp+Ll1wYsn+x98M9MW7qa+NdSbvrrY7ANI4wLJ0n1e6g==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.1.5.tgz",
+ "integrity": "sha512-JMzDKCCXq93YccG5gz3hvOs1oXRKAf0XYpfOS88e+wZrC8Iugj6j68867vrYZkvpDDpKn/KoKORThmchMpF6TA==",
"cpu": [
"x64"
],
@@ -1501,9 +1504,9 @@
}
},
"node_modules/@rolldown/binding-linux-arm-gnueabihf": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.3.tgz",
- "integrity": "sha512-Yi30IVAAfLUCy2MseFjbB1jAMDl1VMCAas5StnYp8da9+CKvMd2H2cbEjWcw5NPaPqzvYkVIaF1nNUG+b7u/sw==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.1.5.tgz",
+ "integrity": "sha512-uML21j2K5TfPGutKxub+M+nLjZIrWjXQ5Grx4lCe/nimTj9B4L63zHpjXLl4y0L3mcm2htEQIb06oCG/szerNw==",
"cpu": [
"arm"
],
@@ -1518,13 +1521,16 @@
}
},
"node_modules/@rolldown/binding-linux-arm64-gnu": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.3.tgz",
- "integrity": "sha512-jsO7R8To+AdlYgUmN5sHSCZbfhtMBkO0WUx8iORQnPcMMdgr7qM2DQmMwgabs3GhNztdmoKkMKQFHD6DTMCIQw==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.1.5.tgz",
+ "integrity": "sha512-navSiuTMogvnQoZoM/v+l3ZWo50/NTwSHSzheABx/RCnmUPaKwq9qSo4Br2OYRs21+Fz8uFqITZM3H4opOB0/Q==",
"cpu": [
"arm64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -1535,13 +1541,16 @@
}
},
"node_modules/@rolldown/binding-linux-arm64-musl": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.3.tgz",
- "integrity": "sha512-VWkUHwWriDciit80wleYwKILoR/KMvxh/IdwS/paX+ZgpuRpCrKLUdadJbc0NpBEiyhpYawsJ73j9aCvOH+f7Q==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.1.5.tgz",
+ "integrity": "sha512-lAryqH7IteztmCXQXk0etKj4wBQ7Gx5S6LjKhsgp9zb8I5bsuvU/2llH1hDQcjsFeqIsovMVN339/8pUDDBXxA==",
"cpu": [
"arm64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -1552,13 +1561,16 @@
}
},
"node_modules/@rolldown/binding-linux-ppc64-gnu": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.3.tgz",
- "integrity": "sha512-5f1laC0SlIR0yDbFCd8acUhvJIag6N3zC5P7oUPN6wX0aOma+uKJ0wBDH5aq7I1PVI2ttTlhJwzwRIBnLiSGEg==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.1.5.tgz",
+ "integrity": "sha512-fsK/sNBnxzBlL4O1JNrZakVQxPspqpED5dLtNsZS9oOKmtSpdNIzxH2kkol5HYTWJN47sE20ztMJPxfZ89qGOg==",
"cpu": [
"ppc64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -1569,13 +1581,16 @@
}
},
"node_modules/@rolldown/binding-linux-s390x-gnu": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.3.tgz",
- "integrity": "sha512-Iq4ko0r4XsgbrF/LunNgHtAGLRRVE2kXonAXQ/MV0mC6jQpMOhW1SvtZja2EhC/kd05++bP78dsqBeIQyYJ6Yg==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.1.5.tgz",
+ "integrity": "sha512-gLYb4BIadlfTOYT5gO503n8zQjXflgzpD0FcyKh0Mzx3rqCZKnHoJWV9xe1KXUJ5lx2JfcSHr/mhzS0PC/McAA==",
"cpu": [
"s390x"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -1586,13 +1601,16 @@
}
},
"node_modules/@rolldown/binding-linux-x64-gnu": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.3.tgz",
- "integrity": "sha512-B8m6tD5+/N5FeNQFbKlLA/2yVq9ycQP1SeedyEYYKWBNR3ZQbkvIUcNnDNM03lO1l5F2roiiFJGgvoLLyZXtSg==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.1.5.tgz",
+ "integrity": "sha512-FjcpEKUyJygHgs1o50VYNvkt5+7Le/VEdYt0AkRpkL33MnyQfwr8l5mXwMmfmTbyMPr5vJLC+8/Gd9gXnwU1QQ==",
"cpu": [
"x64"
],
"dev": true,
+ "libc": [
+ "glibc"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -1603,13 +1621,16 @@
}
},
"node_modules/@rolldown/binding-linux-x64-musl": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.3.tgz",
- "integrity": "sha512-pSdpdUJHkuCxun9LE7jvgUB9qsRgaiyNNCX7m/AvHTcq67AiT/Yhoxvw5zPfhrM8k/BfP8ce/hMOpthKDpEUow==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.1.5.tgz",
+ "integrity": "sha512-Me+PfPI2TMeOQk0gYWfLQZtTktrmzbr8cDboqX83XKc7UrgAi55gF+2dUkWdxd19n55Essp2yeca+O9N5rBxHg==",
"cpu": [
"x64"
],
"dev": true,
+ "libc": [
+ "musl"
+ ],
"license": "MIT",
"optional": true,
"os": [
@@ -1620,9 +1641,9 @@
}
},
"node_modules/@rolldown/binding-openharmony-arm64": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.3.tgz",
- "integrity": "sha512-OXXS3RKJgX2uLwM+gYyuH5omcH8fL1LJs96pZGgtetVCahON57+d4SJHzTgZiOjxgGkSnpXpOsWuPDGAKAigEg==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.1.5.tgz",
+ "integrity": "sha512-yc5WrLzXks6zCQfn9Oxr8pORKyl/pF+QjHmW/Qx3qu0oyrrNC+y2JLTU1E2rcWYAmzlnqngWXHQjy51VzW70Vw==",
"cpu": [
"arm64"
],
@@ -1637,9 +1658,9 @@
}
},
"node_modules/@rolldown/binding-wasm32-wasi": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.3.tgz",
- "integrity": "sha512-JTtb8BWFynicNSoPrehsCzBtOKjZ6jhMiPFEmOiuXg1Fl8dn2KHQob+GuPSGR0dryQa1PQJbzjF3dqO/whhjLg==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.1.5.tgz",
+ "integrity": "sha512-VbQGPX2b4r48TAMIM2cjgluIM1HYutm4pcTEJsle7iEP7sB1dFqtPLBVbdLAZCxy1txCcPxf4QFf4v8uvltPqA==",
"cpu": [
"wasm32"
],
@@ -1647,18 +1668,18 @@
"license": "MIT",
"optional": true,
"dependencies": {
- "@emnapi/core": "1.10.0",
- "@emnapi/runtime": "1.10.0",
- "@napi-rs/wasm-runtime": "^1.1.4"
+ "@emnapi/core": "1.11.1",
+ "@emnapi/runtime": "1.11.1",
+ "@napi-rs/wasm-runtime": "^1.1.6"
},
"engines": {
"node": "^20.19.0 || >=22.12.0"
}
},
"node_modules/@rolldown/binding-win32-arm64-msvc": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.3.tgz",
- "integrity": "sha512-gEdFFEN70A/jxb2svrWsN3aDL7OUtmvlOy+6fa2jxG8K0wQ1ZbdeLGnidov6Yu5/733dI5ySfzFlQ/cb0bSz1g==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.1.5.tgz",
+ "integrity": "sha512-gHv82k63z4qpV5+Q1y/12KrK0ltWBukVDI8nZcbT7Tt/ZlOIVwppazneq0F93oDxTo3IgAMEDIoQh3E2n6mVsw==",
"cpu": [
"arm64"
],
@@ -1673,9 +1694,9 @@
}
},
"node_modules/@rolldown/binding-win32-x64-msvc": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.3.tgz",
- "integrity": "sha512-eXB7CHuaQdqmJcc3koCNtNPmT/bj2gc999kUFgBxG8Ac0NdgXc4rkCHhqrgrhN3zddvvvrgzj1e90SuSfmyIXA==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.1.5.tgz",
+ "integrity": "sha512-tTZuDBPw85tEN5PQi1pnEBzDy0Z49HtScLAbD5t6hyeU92A95pRWaSMw1GZZi/RwgSgUIl0xrSlXIT/9QzvYSA==",
"cpu": [
"x64"
],
@@ -2145,9 +2166,9 @@
}
},
"node_modules/@tauri-apps/cli": {
- "version": "2.11.4",
- "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.11.4.tgz",
- "integrity": "sha512-R8xGtMpwyetawSqm9kYOuMmEqkhUbvcUy8n0aNXIxollKBLESUu5f4Fx+64hgASYm1H+jSWq6jCW6zqTnH6hqQ==",
+ "version": "2.11.5",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.11.5.tgz",
+ "integrity": "sha512-YbeJ6tctNoo40purO4u3Eeo3RVqmsjJr0NoKQRu+4pvO4gMLzkjta7x0k96SxSLmx+rQ+8um1ThOlw+HLpgFug==",
"dev": true,
"license": "Apache-2.0 OR MIT",
"bin": {
@@ -2161,23 +2182,23 @@
"url": "https://opencollective.com/tauri"
},
"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.11.5",
+ "@tauri-apps/cli-darwin-x64": "2.11.5",
+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.11.5",
+ "@tauri-apps/cli-linux-arm64-gnu": "2.11.5",
+ "@tauri-apps/cli-linux-arm64-musl": "2.11.5",
+ "@tauri-apps/cli-linux-riscv64-gnu": "2.11.5",
+ "@tauri-apps/cli-linux-x64-gnu": "2.11.5",
+ "@tauri-apps/cli-linux-x64-musl": "2.11.5",
+ "@tauri-apps/cli-win32-arm64-msvc": "2.11.5",
+ "@tauri-apps/cli-win32-ia32-msvc": "2.11.5",
+ "@tauri-apps/cli-win32-x64-msvc": "2.11.5"
}
},
"node_modules/@tauri-apps/cli-darwin-arm64": {
- "version": "2.11.4",
- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.11.4.tgz",
- "integrity": "sha512-1ryOF3ZhpZ/nemHV5zVwBQBz9jDGKmKPvWPADOhc83ig0P4bMc2iER4NbC6r9sjeIZ6RVQ4g3RZIYvezhcl4TQ==",
+ "version": "2.11.5",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.11.5.tgz",
+ "integrity": "sha512-tggOiVOohjIHdiElbjeBfB41s6cmfsq+ZQ0PX0fEtCdsDdZ9cCi54e5gNK7tdPbR6JbdDe7RA4kbQdyyBUUk/Q==",
"cpu": [
"arm64"
],
@@ -2192,9 +2213,9 @@
}
},
"node_modules/@tauri-apps/cli-darwin-x64": {
- "version": "2.11.4",
- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.11.4.tgz",
- "integrity": "sha512-uFsGQAAfuyz1k/yGLmkWfkBlgKAqZfxqlHmLWx81QU27RJWfmbNHCIq8T8w1e+VClleIuZUjpHWfoE4E3DLo3A==",
+ "version": "2.11.5",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.11.5.tgz",
+ "integrity": "sha512-SrO+KCbqvG1IvVPdlzQX4GEGZRQDISrmDY9bGcW68DLVFBCC06H+Loz6oyUZETUxsSMR6B4oDfvbQVgD4hxsqQ==",
"cpu": [
"x64"
],
@@ -2209,9 +2230,9 @@
}
},
"node_modules/@tauri-apps/cli-linux-arm-gnueabihf": {
- "version": "2.11.4",
- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.11.4.tgz",
- "integrity": "sha512-IaHZn5CdBL21oUmjiVOS1ctw6Ip1O0pjp70FwOWmYz1myWe0SY96ZIj2FYf7pT0m8bI2h/hrs5ZbEXXh44/MkQ==",
+ "version": "2.11.5",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.11.5.tgz",
+ "integrity": "sha512-qLrOaCa8hLD5QVPQRjAgOXvhlTFKXmTliVF773GgvADYcWZSdmncnF5zBFAkdu1uQK8KfQbDlBUwqQYZqBfBRQ==",
"cpu": [
"arm"
],
@@ -2226,9 +2247,9 @@
}
},
"node_modules/@tauri-apps/cli-linux-arm64-gnu": {
- "version": "2.11.4",
- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.11.4.tgz",
- "integrity": "sha512-N41/ukTRVe6XSuUTESuFdGeOW2i7k62tK+6gHK5Kd5/q5RPvvi19GaWAVPPb9u95HSGmTChSolBfzynUsssFaA==",
+ "version": "2.11.5",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.11.5.tgz",
+ "integrity": "sha512-Tq32xpQjiQEdIrvwDq7lwHhXemn070CXWdbCvr9rdi9rsv9NFTbQ6izVSIfNE+59QaerxuwtUtZ5IxDNWaoYBw==",
"cpu": [
"arm64"
],
@@ -2246,9 +2267,9 @@
}
},
"node_modules/@tauri-apps/cli-linux-arm64-musl": {
- "version": "2.11.4",
- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.11.4.tgz",
- "integrity": "sha512-v277UnT/fB64xAfSroL5N3Km3tLmvATWqJJw/wRI+g6o+HkeD0slyE7gOhNs1MbjE41R7bQOTxMVoL3aomUJmw==",
+ "version": "2.11.5",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.11.5.tgz",
+ "integrity": "sha512-+OdWKj5Aq+C8HXypQ4t926V8cpVnc0ZcJIdhTXWjVAJHkaNuo8EuQR6KRZKHWIbJJgKdMPCDosvwzIFaBBqHKQ==",
"cpu": [
"arm64"
],
@@ -2266,9 +2287,9 @@
}
},
"node_modules/@tauri-apps/cli-linux-riscv64-gnu": {
- "version": "2.11.4",
- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.11.4.tgz",
- "integrity": "sha512-qqgNkQ2u1yZHxjhxsZaxUtRDW8dIqIYm33rx/mzwQv0SfY9x1B+iraj8vWeFiXjjSVVhEMepXSOts1TqPzvXNQ==",
+ "version": "2.11.5",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.11.5.tgz",
+ "integrity": "sha512-Q0V2hjpllyDW8dWQZSsITuQDfcY9BpBZuhXkMa2T5AFLZAn+FJPXQSyvnxWNVxRowdQ59Xn0QVtGm6HEHNUEvw==",
"cpu": [
"riscv64"
],
@@ -2286,9 +2307,9 @@
}
},
"node_modules/@tauri-apps/cli-linux-x64-gnu": {
- "version": "2.11.4",
- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.11.4.tgz",
- "integrity": "sha512-2VRNWl84FOH0m2giiDkO2h0QXlcMJeX+zJDpI5kDIQAx6s+geF3v48F4DXfJez4GS/FdoDGnPnw1C2iYGbQ7bQ==",
+ "version": "2.11.5",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.11.5.tgz",
+ "integrity": "sha512-Xz1s87gFjZJZMQKAhLa77YeiCJM6yVog3f9OxDgVd/KxDIoB1dA5V2xOnMM+SRkOGk9juwIBqesVAjV0kUB0DA==",
"cpu": [
"x64"
],
@@ -2306,9 +2327,9 @@
}
},
"node_modules/@tauri-apps/cli-linux-x64-musl": {
- "version": "2.11.4",
- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.11.4.tgz",
- "integrity": "sha512-o9GyhYor/nc7xarmwDE3ka2szuW3uuZzXjHWh64Q8YX5AtSgxdQkFWzrY4O8KiGtVNvFBI14H3Q49Qj5TOIP/A==",
+ "version": "2.11.5",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.11.5.tgz",
+ "integrity": "sha512-6A88wqAZXZHgMaBrGiy/Bpa4GgUnftXM7uquKOeOXCuK78/XdBxEECicK/1oHgrT179XBFOaA6lQEHysjRmGig==",
"cpu": [
"x64"
],
@@ -2326,9 +2347,9 @@
}
},
"node_modules/@tauri-apps/cli-win32-arm64-msvc": {
- "version": "2.11.4",
- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.11.4.tgz",
- "integrity": "sha512-ld5Ehb598m0VkYyylRPNeCFsBe/km0jxis6KgMpl3IGY6I/i1RwQXO05I1AsXUXO2WC6AvB/Lw4qTf/asiuEiQ==",
+ "version": "2.11.5",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.11.5.tgz",
+ "integrity": "sha512-sRGgF/ObRfLcS3PtUdyTbJtkGq3E+PNZTknvAURwMNUtHw9DU/BF6S5si43y9lS5yEO9bWJCA+GGYvnn6cphQw==",
"cpu": [
"arm64"
],
@@ -2343,9 +2364,9 @@
}
},
"node_modules/@tauri-apps/cli-win32-ia32-msvc": {
- "version": "2.11.4",
- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.11.4.tgz",
- "integrity": "sha512-12Hxi0XX/H5VFxO/bGgHkFWhml9VMgEOu9CidjeCeTNQ1l6fpUlbiGgSP7CLI3PFtW9/FfbeHieZ+kyWK5H7CA==",
+ "version": "2.11.5",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.11.5.tgz",
+ "integrity": "sha512-bHOv/yxqfKpI7ioIFQi5wOfZ7jkbPzJD/UhXY52I/hrmE3qNh71cohIPyqZB5GQn3LZeJWdCUOqmIg/w6XX+Wg==",
"cpu": [
"ia32"
],
@@ -2360,9 +2381,9 @@
}
},
"node_modules/@tauri-apps/cli-win32-x64-msvc": {
- "version": "2.11.4",
- "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.11.4.tgz",
- "integrity": "sha512-+vDiqBIU5dMISg/wNvX3sF+ZHfgJGJ5T0AcO+EHNXV9GGAG+P5fzodlDXD3QdKCRgZxMoCm5PPvj3BqLNjBthw==",
+ "version": "2.11.5",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.11.5.tgz",
+ "integrity": "sha512-vaaOmavqdCeS7oMib2banBZemgrC5v54tSkwoBV+bxrXQZhQZrOwE2EO2i4x+CHNtvQUM/6bSs3iymZMAsycWg==",
"cpu": [
"x64"
],
@@ -2386,12 +2407,12 @@
}
},
"node_modules/@tauri-apps/plugin-updater": {
- "version": "2.10.1",
- "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-updater/-/plugin-updater-2.10.1.tgz",
- "integrity": "sha512-NFYMg+tWOZPJdzE/PpFj2qfqwAWwNS3kXrb1tm1gnBJ9mYzZ4WDRrwy8udzWoAnfGCHLuePNLY1WVCNHnh3eRA==",
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/plugin-updater/-/plugin-updater-2.12.0.tgz",
+ "integrity": "sha512-74+g7rSIHXQje3ttR6tYap3FJP/UtZqqYxGVF9EE0Kpz0YADxHX2Ynw/eIlNPMy9D1aG+F8oBosT+6nphSa8Og==",
"license": "MIT OR Apache-2.0",
"dependencies": {
- "@tauri-apps/api": "^2.10.1"
+ "@tauri-apps/api": "^2.11.0"
}
},
"node_modules/@testing-library/dom": {
@@ -2540,9 +2561,9 @@
"license": "MIT"
},
"node_modules/@tybys/wasm-util": {
- "version": "0.10.2",
- "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz",
- "integrity": "sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==",
+ "version": "0.10.4",
+ "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.4.tgz",
+ "integrity": "sha512-W3c4gRigFS0T/Ma4qIYF3GDAc5AQdHb1yL5znJT1Zv1YaD9Kitx656wBjvr19qbiosmZT8lWDM5BEMynUqX65A==",
"dev": true,
"license": "MIT",
"optional": true,
@@ -7612,9 +7633,9 @@
"license": "ISC"
},
"node_modules/picomatch": {
- "version": "4.0.4",
- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
- "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",
+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",
"dev": true,
"license": "MIT",
"engines": {
@@ -8241,13 +8262,13 @@
}
},
"node_modules/rolldown": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.3.tgz",
- "integrity": "sha512-i00lAJ2ks1BYr7rjNjKC7BcqAS7nVfiT3QX1SI5aY+AFHblCmaUf9OE9dbdzDvW6dJxbi2ZCZiy9v3CcwOiX3g==",
+ "version": "1.1.5",
+ "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.1.5.tgz",
+ "integrity": "sha512-t9z29cJjXf/vxQ8dyhCSpt6H6aSwHTk8cT5I3iy6SMXuFpk5mB6PL6XfC8PCwrPTx93udwKUm9HRteAlTGBLiA==",
"dev": true,
"license": "MIT",
"dependencies": {
- "@oxc-project/types": "=0.133.0",
+ "@oxc-project/types": "=0.139.0",
"@rolldown/pluginutils": "^1.0.0"
},
"bin": {
@@ -8257,21 +8278,21 @@
"node": "^20.19.0 || >=22.12.0"
},
"optionalDependencies": {
- "@rolldown/binding-android-arm64": "1.0.3",
- "@rolldown/binding-darwin-arm64": "1.0.3",
- "@rolldown/binding-darwin-x64": "1.0.3",
- "@rolldown/binding-freebsd-x64": "1.0.3",
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.3",
- "@rolldown/binding-linux-arm64-gnu": "1.0.3",
- "@rolldown/binding-linux-arm64-musl": "1.0.3",
- "@rolldown/binding-linux-ppc64-gnu": "1.0.3",
- "@rolldown/binding-linux-s390x-gnu": "1.0.3",
- "@rolldown/binding-linux-x64-gnu": "1.0.3",
- "@rolldown/binding-linux-x64-musl": "1.0.3",
- "@rolldown/binding-openharmony-arm64": "1.0.3",
- "@rolldown/binding-wasm32-wasi": "1.0.3",
- "@rolldown/binding-win32-arm64-msvc": "1.0.3",
- "@rolldown/binding-win32-x64-msvc": "1.0.3"
+ "@rolldown/binding-android-arm64": "1.1.5",
+ "@rolldown/binding-darwin-arm64": "1.1.5",
+ "@rolldown/binding-darwin-x64": "1.1.5",
+ "@rolldown/binding-freebsd-x64": "1.1.5",
+ "@rolldown/binding-linux-arm-gnueabihf": "1.1.5",
+ "@rolldown/binding-linux-arm64-gnu": "1.1.5",
+ "@rolldown/binding-linux-arm64-musl": "1.1.5",
+ "@rolldown/binding-linux-ppc64-gnu": "1.1.5",
+ "@rolldown/binding-linux-s390x-gnu": "1.1.5",
+ "@rolldown/binding-linux-x64-gnu": "1.1.5",
+ "@rolldown/binding-linux-x64-musl": "1.1.5",
+ "@rolldown/binding-openharmony-arm64": "1.1.5",
+ "@rolldown/binding-wasm32-wasi": "1.1.5",
+ "@rolldown/binding-win32-arm64-msvc": "1.1.5",
+ "@rolldown/binding-win32-x64-msvc": "1.1.5"
}
},
"node_modules/rolldown/node_modules/@rolldown/pluginutils": {
@@ -9266,16 +9287,16 @@
}
},
"node_modules/vite": {
- "version": "8.0.16",
- "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.16.tgz",
- "integrity": "sha512-h9bXPmJichP5fLmVQo3PyaGSDE2n3aPuomeAlVRm0JLmt4rY6zmPKd59HYI4LNW8oTK7tlTsuC7l/m7awx9Jcw==",
+ "version": "8.1.6",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-8.1.6.tgz",
+ "integrity": "sha512-aRAHIxx5SW5zc1sMqFwJU/t5qaFfXb5Hj0J7W0VXihu/X99+346tz6080tO1T1xVIJORX/b3zVTXGFqUXh35uw==",
"dev": true,
"license": "MIT",
"dependencies": {
"lightningcss": "^1.32.0",
- "picomatch": "^4.0.4",
- "postcss": "^8.5.15",
- "rolldown": "1.0.3",
+ "picomatch": "^4.0.5",
+ "postcss": "^8.5.17",
+ "rolldown": "~1.1.5",
"tinyglobby": "^0.2.17"
},
"bin": {
@@ -9292,7 +9313,7 @@
},
"peerDependencies": {
"@types/node": "^20.19.0 || >=22.12.0",
- "@vitejs/devtools": "^0.1.18",
+ "@vitejs/devtools": "^0.3.0",
"esbuild": "^0.27.0 || ^0.28.0",
"jiti": ">=1.21.0",
"less": "^4.0.0",
diff --git a/package.json b/package.json
index 21d2eb05..3f11f11d 100644
--- a/package.json
+++ b/package.json
@@ -47,7 +47,7 @@
"@react-three/fiber": "^9.5.0",
"@supabase/supabase-js": "^2.110.0",
"@tauri-apps/plugin-shell": "^2.3.5",
- "@tauri-apps/plugin-updater": "^2.10.1",
+ "@tauri-apps/plugin-updater": "2.12.0",
"@types/react-syntax-highlighter": "^15.5.13",
"@types/uuid": "^10.0.0",
"dotenv": "^17.3.1",
@@ -73,8 +73,8 @@
"@eslint/js": "^9.39.4",
"@playwright/test": "^1.61.1",
"@tailwindcss/vite": "^4.2.2",
- "@tauri-apps/api": "^2.10.1",
- "@tauri-apps/cli": "2.11.4",
+ "@tauri-apps/api": "2.10.1",
+ "@tauri-apps/cli": "2.11.5",
"@testing-library/react": "^16.3.3",
"@types/node": "^24.12.0",
"@types/react": "^19.2.14",
@@ -88,7 +88,12 @@
"madge": "^8.0.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.57.0",
- "vite": "^8.0.1",
+ "vite": "8.1.6",
"vitest": "^4.1.11"
+ },
+ "overrides": {
+ "@tauri-apps/plugin-updater": {
+ "@tauri-apps/api": "$@tauri-apps/api"
+ }
}
}
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index 574b5079..5bcf5318 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -6077,9 +6077,9 @@ dependencies = [
[[package]]
name = "tauri-plugin-updater"
-version = "2.10.1"
+version = "2.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "806d9dac662c2e4594ff03c647a552f2c9bd544e7d0f683ec58f872f952ce4af"
+checksum = "7a5cad8ed5948d988e1018ecd31e27cacedbf72ce3fb972940c3e4bf51639e4b"
dependencies = [
"base64 0.22.1",
"dirs",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 3677a01e..035116fd 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -180,7 +180,10 @@ tauri-plugin-lu-native = { path = "plugins/lu-native" }
# the updater has nothing to install because updates come through the store.
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
tauri = { version = "2", features = ["devtools", "tray-icon"] }
-tauri-plugin-updater = "2"
+# Pinned: 2.12.0 is the first with `requireSignedVersion` (tauri.conf.json),
+# which binds a signature to the version latest.json announces; the CLI writes
+# that version into the signature since 2.11.5. 2.13 asks for tauri 2.12.
+tauri-plugin-updater = "=2.12.0"
tauri-plugin-single-instance = "2"
# Native open and save dialogs.
rfd = "0.15"
diff --git a/src-tauri/src/commands/self_migrate.rs b/src-tauri/src/commands/self_migrate.rs
index 6ae993fd..45d76e05 100644
--- a/src-tauri/src/commands/self_migrate.rs
+++ b/src-tauri/src/commands/self_migrate.rs
@@ -196,13 +196,26 @@ fn tauri_target() -> &'static str {
// ── The signature ─────────────────────────────────────────────
/// The same check the plugin runs before it installs anything
-/// (tauri-plugin-updater-2.10.1/src/updater.rs, `verify_signature`): both the
+/// (tauri-plugin-updater-2.12.0/src/updater.rs, `verify_signature`): both the
/// public key and the signature travel base64 wrapped around minisign's own
/// text format, and the key is the one out of `tauri.conf.json`.
///
+/// After the file, the version: latest.json is not signed, so its `version`
+/// alone does not say which release the url and signature belong to. Since
+/// tauri-cli 2.11.5 the trusted comment carries `version:x.y.z`, and the global
+/// signature covers that comment, so it can only be read once `verify` passed.
+/// A signature without it is refused when `require_signed_version` is set
+/// (`requireSignedVersion` in tauri.conf.json), exactly as the plugin does.
+///
/// A file that fails here is deleted by the caller and never becomes an
/// executable in the user's home folder.
-pub fn verify_signature(data: &[u8], signature_b64: &str, pub_key_b64: &str) -> Result<(), String> {
+pub fn verify_signature(
+ data: &[u8],
+ signature_b64: &str,
+ pub_key_b64: &str,
+ announced_version: &str,
+ require_signed_version: bool,
+) -> Result<(), String> {
use base64::Engine;
let unwrap_b64 = |what: &str, s: &str| -> Result<String, String> {
let raw = base64::engine::general_purpose::STANDARD
@@ -221,7 +234,32 @@ pub fn verify_signature(data: &[u8], signature_b64: &str, pub_key_b64: &str) ->
public_key
.verify(data, &signature, true)
- .map_err(|e| format!("the signature does not match the downloaded file: {e}"))
+ .map_err(|e| format!("the signature does not match the downloaded file: {e}"))?;
+
+ verify_signed_version(signature.trusted_comment(), announced_version, require_signed_version)
+}
+
+/// The plugin's `verify_signed_version`. `3.0.9` and `v3.0.9` are the same
+/// release; the plugin compares as semver, and our versions are plain x.y.z.
+pub fn verify_signed_version(
+ trusted_comment: &str,
+ announced_version: &str,
+ require_signed_version: bool,
+) -> Result<(), String> {
+ let Some(signed) = trusted_comment.split('\t').find_map(|field| field.strip_prefix("version:")) else {
+ return if require_signed_version {
+ Err("the signature does not name the version it was made for, and this build requires that".to_string())
+ } else {
+ Ok(())
+ };
+ };
+ if signed.trim_start_matches('v') == announced_version.trim_start_matches('v') {
+ Ok(())
+ } else {
+ Err(format!(
+ "the signature was made for version {signed}, but the update server announced {announced_version}"
+ ))
+ }
}
// ── Putting the file in place ─────────────────────────────────
@@ -608,12 +646,42 @@ mod tests {
// a download that got swapped on the way.
let key = "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDZDNkRFNzJFRjhFNkIxNDcKUldSSHNlYjRMdWR0YklwQlJhTUR4TXBTTE1xKzFUcWVVTEpTL0hZMi9ldmlOcW5BWFZWeUdzRGMK";
let sig = "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVSSHNlYjRMdWR0YklZalVUbGZSSDJ6Y1VYMmNrcmJwZUhwbHFoRFN6Qi84MjRTQ1ROaUdYaE43S2NjODNSU24rclIzVEF2cktpeThpN216QnRQRG1pWEFGQm1rZ2dBbWdzPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzg4NzI1Njk2CWZpbGU6TG9jYWxseSBVbmNlbnNvcmVkXzIuNi44X2FtZDY0LkFwcEltYWdlCjEzRkxyQ0lWNlZ2YWdjdTJ0WGZOMUJNUXRmQWdmRVE5ZmlUTzk5TTM3V29EMXV3NERBSE5nZTd0bkQ2dEcvNVVlVWNTdFNsVFpnbGduclNxY1pBbkJBPT0K";
- let err = verify_signature(b"this is not the AppImage", sig, key).unwrap_err();
+ let err = verify_signature(b"this is not the AppImage", sig, key, "2.6.8", false).unwrap_err();
assert!(err.contains("does not match"), "{err}");
// And the two ways the inputs themselves can be wrong.
- assert!(verify_signature(b"x", "not base64!!", key).unwrap_err().contains("signature"));
- assert!(verify_signature(b"x", sig, "not base64!!").unwrap_err().contains("public key"));
+ assert!(verify_signature(b"x", "not base64!!", key, "2.6.8", false).unwrap_err().contains("signature"));
+ assert!(verify_signature(b"x", sig, "not base64!!", "2.6.8", false).unwrap_err().contains("public key"));
+ }
+
+ // A throwaway key made for this test with `tauri signer generate` (CLI
+ // 2.11.5), and two signatures over FIXTURE: one with `--app-version 3.0.9`,
+ // whose trusted comment ends in `version:3.0.9`, and one without, which is
+ // what every CLI before 2.11.5 wrote.
+ const TEST_KEY: &str = "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDI2NEU5RUM3QzE5RkY1QkEKUldTNjlaL0J4NTVPSm1YSTdrLzN0YTUyeEZGOC9MWlV4RWc2ME1SdFVvU3dxbHR1RFBVS010Q0IK";
+ const FIXTURE: &[u8] = b"lu self migrate fixture\n";
+ const SIGNED_FOR_309: &str = "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVTNjlaL0J4NTVPSmpOeEdjcG1JYkUyK0x5Y0Z6WEw0T2ExeENlSncvVTJVVTgrYTluK2hKNEZLc21ZdUZrd0c2YlhkeUUxYnQ4TFhyOUtkN3pRTXl6T3IrUVFZYWhnUnc4PQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzkzMTk2NTQzCWZpbGU6Zml4dHVyZS5iaW4JdmVyc2lvbjozLjAuOQphU1NDQSs2dmVZRFhBVmkxMDRUVWZhRE9tc1JtemN5clRCa1ppQlI3ZVJMVUFhMHJPcVlQV0ZmbVd4RG84RlUzWEhkTWY5a1JOemZ1OEt6akhXVUdDZz09Cg==";
+ const SIGNED_WITHOUT_VERSION: &str = "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVTNjlaL0J4NTVPSnR5VUY4aFpWNG5mbm5ZZUpvK0RkZUcwajNrL3cyZDNYMXJlSHlHSE1iSGFzaWhyZmlKOWV1eHRSemU0UGVCb1N6RjRxak42YWUyc0hjNEltVWpDY3c0PQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzkzMTk2NTQzCWZpbGU6bGVnYWN5LmJpbgpDZ21FclNTYmtLM3R6eW9ISExpQk9YeHpUcTVON2I1QmZDM0RLU2x1ZTZaTFNkUFh2T2VBU1pKMjJ5T3phaEJ1LzM3VmVBQjh6eVk2cnh4R0tFMHJBUT09Cg==";
+
+ #[test]
+ fn a_signature_made_for_one_version_is_refused_for_another() {
+ // The file and signature are genuine; only latest.json claims a newer
+ // version for them. That is the replay the version binding stops.
+ verify_signature(FIXTURE, SIGNED_FOR_309, TEST_KEY, "3.0.9", true).expect("same version");
+ verify_signature(FIXTURE, SIGNED_FOR_309, TEST_KEY, "v3.0.9", true).expect("v prefix");
+ let err = verify_signature(FIXTURE, SIGNED_FOR_309, TEST_KEY, "3.0.10", true).unwrap_err();
+ assert!(err.contains("made for version 3.0.9") && err.contains("3.0.10"), "{err}");
+ // Like the plugin: a version in the signature is always checked, even
+ // when the build does not require one.
+ assert!(verify_signature(FIXTURE, SIGNED_FOR_309, TEST_KEY, "3.0.10", false).is_err());
+ }
+
+ #[test]
+ fn a_signature_without_a_version_passes_only_when_none_is_required() {
+ verify_signature(FIXTURE, SIGNED_WITHOUT_VERSION, TEST_KEY, "3.0.9", false)
+ .expect("an old signature is still fine where the build does not ask for a version");
+ let err = verify_signature(FIXTURE, SIGNED_WITHOUT_VERSION, TEST_KEY, "3.0.9", true).unwrap_err();
+ assert!(err.contains("does not name the version"), "{err}");
}
/// The real proof, against the file GitHub serves.
@@ -638,12 +706,12 @@ mod tests {
.expect("LU_APPIMAGE_PUBKEY: the pubkey out of tauri.conf.json");
let mut bytes = std::fs::read(&path).expect("the fixture");
- verify_signature(&bytes, &signature, &key).expect("the real download must be accepted");
+ verify_signature(&bytes, &signature, &key, "2.6.8", false).expect("the real download must be accepted");
eprintln!("accepted {} bytes from {:?}", bytes.len(), path);
let middle = bytes.len() / 2;
bytes[middle] ^= 0x01;
- let err = verify_signature(&bytes, &signature, &key)
+ let err = verify_signature(&bytes, &signature, &key, "2.6.8", false)
.expect_err("one flipped byte must be refused");
eprintln!("refused after flipping byte {middle}: {err}");
}
diff --git a/src-tauri/src/commands/self_migrate_cmd.rs b/src-tauri/src/commands/self_migrate_cmd.rs
index 4d56a08b..9b628436 100644
--- a/src-tauri/src/commands/self_migrate_cmd.rs
+++ b/src-tauri/src/commands/self_migrate_cmd.rs
@@ -35,10 +35,11 @@ fn emit(app: &tauri::AppHandle, phase: &str, downloaded: u64, total: u64) {
);
}
-/// The endpoints and the public key out of `tauri.conf.json`, read from the
-/// config the app was built with rather than copied into a second place. The
-/// plugin reads the very same two values, so they cannot drift apart.
-fn updater_config(app: &tauri::AppHandle) -> Result<(Vec<String>, String), String> {
+/// The endpoints, the public key and `requireSignedVersion` out of
+/// `tauri.conf.json`, read from the config the app was built with rather than
+/// copied into a second place. The plugin reads the very same values, so they
+/// cannot drift apart.
+fn updater_config(app: &tauri::AppHandle) -> Result<(Vec<String>, String, bool), String> {
let plugins = &app.config().plugins.0;
let updater = plugins
.get("updater")
@@ -48,6 +49,10 @@ fn updater_config(app: &tauri::AppHandle) -> Result<(Vec<String>, String), Strin
.and_then(|v| v.as_str())
.ok_or("this build has no update signing key")?
.to_string();
+ let require_signed_version = updater
+ .get("requireSignedVersion")
+ .and_then(|v| v.as_bool())
+ .unwrap_or(false);
let version = crate::app_identity::APP_VERSION.to_string();
let endpoints: Vec<String> = updater
.get("endpoints")
@@ -62,7 +67,7 @@ fn updater_config(app: &tauri::AppHandle) -> Result<(Vec<String>, String), Strin
if endpoints.is_empty() {
return Err("this build has no update server configured".to_string());
}
- Ok((endpoints, pubkey))
+ Ok((endpoints, pubkey, require_signed_version))
}
/// Refuse to run anywhere the plugin does its job. The frontend already asks
@@ -86,7 +91,7 @@ pub async fn self_migrate_stage(app: tauri::AppHandle) -> Result<serde_json::Val
.await
.map_err(|e| format!("the install check failed to run: {e}"))??;
- let (endpoints, pubkey) = updater_config(&app)?;
+ let (endpoints, pubkey, require_signed_version) = updater_config(&app)?;
let release = fetch_manifest(&endpoints).await?;
let dir = layout.install_dir();
@@ -106,10 +111,11 @@ pub async fn self_migrate_stage(app: tauri::AppHandle) -> Result<serde_json::Val
emit(&app, "verify", total, total);
let staged_for_check = staged.clone();
let signature = release.signature.clone();
+ let announced = release.version.clone();
let verdict = tauri::async_runtime::spawn_blocking(move || {
let bytes = std::fs::read(&staged_for_check)
.map_err(|e| format!("could not read the download back: {}", os_error::english(&e)))?;
- self_migrate::verify_signature(&bytes, &signature, &pubkey)
+ self_migrate::verify_signature(&bytes, &signature, &pubkey, &announced, require_signed_version)
})
.await
.map_err(|e| format!("the signature check failed to run: {e}"))?;
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index e3a843b8..f6e209f7 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -33,6 +33,7 @@
"endpoints": [
"https://github.com/purpledoubled/locally-uncensored/releases/latest/download/latest.json"
],
+ "requireSignedVersion": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDZDNkRFNzJFRjhFNkIxNDcKUldSSHNlYjRMdWR0YklwQlJhTUR4TXBTTE1xKzFUcWVVTEpTL0hZMi9ldmlOcW5BWFZWeUdzRGMK"
}
},
diff --git a/src/lib/__tests__/updater-signed-version.test.ts b/src/lib/__tests__/updater-signed-version.test.ts
new file mode 100644
index 00000000..20a909d5
--- /dev/null
+++ b/src/lib/__tests__/updater-signed-version.test.ts
@@ -0,0 +1,102 @@
+/**
+ * The updater binds a signature to the version latest.json announces.
+ *
+ * latest.json is not signed. Its `version` alone does not say which release
+ * the `url` and `signature` belong to, so a tampered response could pair a new
+ * version number with an older, genuinely signed release. Since tauri-cli
+ * 2.11.5 the trusted comment of every updater signature carries
+ * `version:x.y.z`, minisign's global signature covers that comment, and
+ * tauri-plugin-updater 2.12.0 compares it with the announced version.
+ * `requireSignedVersion` in tauri.conf.json also refuses a signature that names
+ * no version at all, which is the only way to stop someone from replaying a
+ * signature made before 2.11.5.
+ *
+ * Turned on, it is all or nothing: one lane that signs without the version
+ * ships updater files that no install from 3.0.9 on will accept. This test
+ * holds the pieces together:
+ * - the CLI that writes the version (`tauri build` fills it in),
+ * - the plugin that reads it (crate and npm package on the same minor),
+ * - every hand-made signature in CI (`tauri signer sign`) naming it.
+ *
+ * Run: npx vitest run src/lib/__tests__/updater-signed-version.test.ts
+ */
+import { describe, it, expect } from 'vitest'
+import { readFileSync, readdirSync, statSync } from 'node:fs'
+import { fileURLToPath } from 'node:url'
+import { dirname, resolve, join, relative } from 'node:path'
+
+const root = resolve(dirname(fileURLToPath(import.meta.url)), '../../..')
+
+const conf = JSON.parse(readFileSync(join(root, 'src-tauri/tauri.conf.json'), 'utf8'))
+const lock = JSON.parse(readFileSync(join(root, 'package-lock.json'), 'utf8'))
+const cargoLock = readFileSync(join(root, 'src-tauri/Cargo.lock'), 'utf8')
+
+function npmVersion(name: string): string {
+ const v = lock.packages?.[`node_modules/${name}`]?.version
+ if (!v) throw new Error(`${name} is not a top-level entry in package-lock.json`)
+ return v
+}
+
+function crateVersion(name: string): string {
+ const m = cargoLock.match(new RegExp(`\\[\\[package\\]\\]\\nname = "${name}"\\nversion = "([^"]+)"`))
+ if (!m) throw new Error(`crate ${name} not found in src-tauri/Cargo.lock`)
+ return m[1]
+}
+
+const atLeast = (v: string, min: string) => {
+ const a = v.split('.').map(Number)
+ const b = min.split('.').map(Number)
+ for (let i = 0; i < 3; i++) if (a[i] !== b[i]) return a[i] > b[i]
+ return true
+}
+
+/** Every workflow and composite action, with the lines that sign by hand. */
+function handSignedLines(): { file: string; line: string }[] {
+ const out: { file: string; line: string }[] = []
+ const walk = (dir: string) => {
+ for (const name of readdirSync(dir)) {
+ const path = join(dir, name)
+ if (statSync(path).isDirectory()) walk(path)
+ else if (/\.ya?ml$/.test(name)) {
+ for (const line of readFileSync(path, 'utf8').split('\n')) {
+ // The command itself, not an error message that names it.
+ if (/(?:^|[\s;&|(])(?:npx\s+|npm run tauri --\s+)?tauri signer sign\s+(?!failed)/.test(line) && !line.trim().startsWith('#')) out.push({ file: relative(root, path), line: line.trim() })
+ }
+ }
+ }
+ }
+ walk(join(root, '.github'))
+ return out
+}
+
+describe('updater signatures name the version they were made for', () => {
+ it('the app requires it', () => {
+ expect(conf.plugins.updater.requireSignedVersion).toBe(true)
+ })
+
+ it('the CLI writes it (2.11.5 and up)', () => {
+ expect(atLeast(npmVersion('@tauri-apps/cli'), '2.11.5'), npmVersion('@tauri-apps/cli')).toBe(true)
+ })
+
+ it('the plugin reads it (2.12.0 and up), crate and npm package on the same minor', () => {
+ const crate = crateVersion('tauri-plugin-updater')
+ const npm = npmVersion('@tauri-apps/plugin-updater')
+ expect(atLeast(crate, '2.12.0'), crate).toBe(true)
+ expect(npm.split('.').slice(0, 2)).toEqual(crate.split('.').slice(0, 2))
+ })
+
+ it('the plugin uses the one @tauri-apps/api the app has', () => {
+ // plugin-updater 2.12.0 asks for api ^2.11; the app's api must stay on the
+ // tauri crate's minor (tauri-versions-agree). package.json overrides it to
+ // the top-level copy: the plugin only imports invoke, Resource and Channel.
+ expect(lock.packages['node_modules/@tauri-apps/plugin-updater/node_modules/@tauri-apps/api']).toBeUndefined()
+ })
+
+ it('every hand-made signature in CI names the version', () => {
+ const lines = handSignedLines()
+ // The SignPath lane signs the Windows updater files after SignPath signed
+ // the installers; if that ever moves, this test should be moved with it.
+ expect(lines.length).toBeGreaterThan(0)
+ for (const { file, line } of lines) expect(line, file).toMatch(/--app-version\s+\S+/)
+ })
+})