Signed auto-updates for macOS and Windows

- Tauri updater with the release signing key; macOS and Windows offer
  Install and restart in the update notice, with download progress
- The release workflow signs the macOS app archive and the Windows
  installer when the key secret is present and publishes latest.json
- Linux keeps the notice; updates there come from the package manager
This commit is contained in:
2026-11-27 22:18:13 +01:00
parent 4b1590e750
commit 4960f6d419
11 changed files with 308 additions and 10 deletions
+2
View File
@@ -30,6 +30,8 @@ tauri = { version = "2", features = [] }
tauri-plugin-dialog = "2"
tauri-plugin-opener = "2"
tauri-plugin-notification = "2"
tauri-plugin-updater = "2"
tauri-plugin-process = "2"
tauri-plugin-single-instance = { version = "2", features = ["deep-link"] }
tauri-plugin-deep-link = "2"
rusqlite = { version = "0.37", features = ["bundled"] }
+3 -1
View File
@@ -19,6 +19,8 @@
"deep-link:default",
"core:webview:allow-create-webview-window",
"core:window:allow-set-title",
"notification:default"
"notification:default",
"updater:default",
"process:allow-restart"
]
}
+2
View File
@@ -20,6 +20,8 @@ pub fn run() {
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_opener::init())
.plugin(tauri_plugin_notification::init())
.plugin(tauri_plugin_updater::Builder::new().build())
.plugin(tauri_plugin_process::init())
.setup(|app| {
let dir = app.path().app_data_dir()?;
app.manage(state::AppState::new(dir)?);
+9
View File
@@ -35,6 +35,15 @@
"knock"
]
}
},
"updater": {
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDM2QjY4RUU5MzQwNzQzNTIKUldSU1F3YzA2WTYyTnNPZU0zR0xQUjl4dmUvQlpZazJkVXhjUE1JbDhNNTJRUUdzQjI4UTVCdlMK",
"endpoints": [
"https://github.com/JoshiCodes/knock/releases/latest/download/latest.json"
],
"windows": {
"installMode": "passive"
}
}
},
"bundle": {