mirror of
https://github.com/JoshiCodes/knock.git
synced 2026-12-04 15:09:41 +01:00
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:
@@ -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"] }
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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)?);
|
||||
|
||||
@@ -35,6 +35,15 @@
|
||||
"knock"
|
||||
]
|
||||
}
|
||||
},
|
||||
"updater": {
|
||||
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDM2QjY4RUU5MzQwNzQzNTIKUldSU1F3YzA2WTYyTnNPZU0zR0xQUjl4dmUvQlpZazJkVXhjUE1JbDhNNTJRUUdzQjI4UTVCdlMK",
|
||||
"endpoints": [
|
||||
"https://github.com/JoshiCodes/knock/releases/latest/download/latest.json"
|
||||
],
|
||||
"windows": {
|
||||
"installMode": "passive"
|
||||
}
|
||||
}
|
||||
},
|
||||
"bundle": {
|
||||
|
||||
Reference in New Issue
Block a user