feat(updater): wire tauri-plugin-updater with GitHub releases endpoint + update toast
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user