Skip to content

Commit

Permalink
Fix updater plugin registration
Browse files Browse the repository at this point in the history
  • Loading branch information
i-c-b committed Oct 31, 2023
1 parent b43992b commit 891169a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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::<Env>().appimage.is_some();
#[cfg(not(target_os = "linux"))]
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "tauri-app",
"version": "1.2.4-8"
"version": "1.2.4-9"
},
"tauri": {
"bundle": {
Expand Down

0 comments on commit 891169a

Please sign in to comment.