From 891169ab9988c0b981fc2a943785488274affa2d Mon Sep 17 00:00:00 2001 From: i-c-b <133848861+i-c-b@users.noreply.github.com> Date: Tue, 31 Oct 2023 05:49:16 +0000 Subject: [PATCH] Fix updater plugin registration --- src-tauri/src/main.rs | 2 +- src-tauri/tauri.conf.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 8714a3f..9f27c38 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -14,6 +14,7 @@ fn main() { tauri::Builder::default() .plugin(tauri_plugin_window::init()) .plugin(tauri_plugin_shell::init()) + .plugin(tauri_plugin_updater::Builder::new().build()) .invoke_handler(tauri::generate_handler![greet]) .setup(|app| { #[cfg(desktop)] @@ -26,7 +27,6 @@ fn main() { #[cfg(desktop)] fn check_for_update(app_handle: AppHandle) -> tauri::Result<()> { - app_handle.plugin(tauri_plugin_updater::Builder::new().build())?; #[cfg(target_os = "linux")] let updater_enabled = cfg!(dev) || app_handle.state::().appimage.is_some(); #[cfg(not(target_os = "linux"))] diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 650ce32..e626ac3 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "tauri-app", - "version": "1.2.4-8" + "version": "1.2.4-9" }, "tauri": { "bundle": {