Opt-in update notices

- Asked once after the first start; switch and Check now in Settings
- At most one request a day to GitHub's latest-release endpoint,
  nothing else is sent; knock never updates itself
- A new version shows a notice with download link and release notes,
  plus one desktop notification per version; versions can be skipped
This commit is contained in:
2026-11-27 21:56:04 +01:00
parent 677b5adaf9
commit be65eae732
13 changed files with 391 additions and 2 deletions
+10
View File
@@ -27,6 +27,7 @@
"@tauri-apps/api": "^2.12.5",
"@tauri-apps/plugin-deep-link": "^2.6.3",
"@tauri-apps/plugin-dialog": "^2.8.4",
"@tauri-apps/plugin-notification": "^2.8.1",
"@tauri-apps/plugin-opener": "^2.7.3",
"cm6-graphql": "^1.0.0",
"graphql": "^17.1.0",
@@ -1345,6 +1346,15 @@
"@tauri-apps/api": "^2.12.0"
}
},
"node_modules/@tauri-apps/plugin-notification": {
"version": "2.8.1",
"resolved": "https://registry.npmjs.org/@tauri-apps/plugin-notification/-/plugin-notification-2.8.1.tgz",
"integrity": "sha512-B+OCJv17XCFQxAhe2+fn2bHqQ1fz/hGnYHeT++yv8+q0daOH5o1ghX7MmxWgoGFp7POaNn4UMONclHeZn65mJA==",
"license": "MIT OR Apache-2.0",
"dependencies": {
"@tauri-apps/api": "^2.12.0"
}
},
"node_modules/@tauri-apps/plugin-opener": {
"version": "2.7.3",
"resolved": "https://registry.npmjs.org/@tauri-apps/plugin-opener/-/plugin-opener-2.7.3.tgz",