feat(updater): wire tauri-plugin-updater with GitHub releases endpoint + update toast

This commit is contained in:
2026-04-18 09:41:42 +01:00
parent ddcf93649c
commit 8b5d92f466
6 changed files with 63 additions and 0 deletions

View File

@@ -123,6 +123,7 @@ pub fn run() {
.plugin(tauri_plugin_opener::init())
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_global_shortcut::Builder::new().build())
.plugin(tauri_plugin_updater::Builder::new().build())
.setup(|app| {
// Initialise database (blocking in setup — runs once at startup)
let db_path = database_path();
@@ -285,6 +286,9 @@ pub fn run() {
commands::hotkey::start_evdev_hotkey,
commands::hotkey::update_evdev_hotkey,
commands::hotkey::stop_evdev_hotkey,
// Updater
commands::update::check_for_update,
commands::update::install_update,
])
.run(tauri::generate_context!())
.expect("error while running Kon");