feat(desktop): Update in der App — Herunterladen, Installieren und Neustart per Klick im Infobereich (tauri-plugin-updater)
- tauri-plugin-updater 2.11 + semver eingebunden; pubkey, installMode passive und createUpdaterArtifacts in tauri.conf.json (kein endpoints, keine dangerous*-Schalter) - Versionspruefung laeuft ueber updater_builder().check() gegen /api-proxy/desktop/update mit eigenem version_comparator (is_update_newer: hoehere Basis oder anderer Beta-Stempel beta.g<sha7>; gleiche Basis Live → kein Update); 15 s Pruefung, 600 s Download-Timeout - Tray-Eintrag "Update installieren" laedt mit Fortschritt im Menuetext, prueft die minisign-Signatur, installiert (Windows NSIS passiv, Linux AppImage an Ort und Stelle) und startet neu; Fehler → Benachrichtigung und Rueckfall auf die Einstellungsseite im Browser - http-Server im Release: Menuetext "Update nur über https möglich", gesperrt - 15 neue Tests, 2 umgestellt (33 gesamt); gen/schemas vom Bau nachgezogen Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
},
|
||||
"bundle": {
|
||||
"active": true,
|
||||
"createUpdaterArtifacts": true,
|
||||
"targets": [
|
||||
"appimage",
|
||||
"nsis"
|
||||
@@ -48,5 +49,13 @@
|
||||
"installMode": "currentUser"
|
||||
}
|
||||
}
|
||||
},
|
||||
"plugins": {
|
||||
"updater": {
|
||||
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEIxNDIxMTZDMUFGRkJCRjEKUldUeHUvOGFiQkZDc2V0cnJZcmJVSURraGJHcE5TODVDeUp3UEVpM0xOc3I5TUZrNW5qZUw0d2gK",
|
||||
"windows": {
|
||||
"installMode": "passive"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user