From f1355c9d15f4210d82de3d865006825eaed0ee0c Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Wed, 8 Oct 2025 04:25:00 -0700 Subject: [PATCH] Fix non-release build --- .github/workflows/release.yml | 2 +- src-tauri/src/lib.rs | 6 +++++- .../{tauri.commercial.conf.json => tauri.release.conf.json} | 0 3 files changed, 6 insertions(+), 2 deletions(-) rename src-tauri/{tauri.commercial.conf.json => tauri.release.conf.json} (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 660bbaf6..80158ae1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -114,4 +114,4 @@ jobs: releaseBody: '[Changelog __VERSION__](https://yaak.app/blog/__VERSION__)' releaseDraft: true prerelease: true - args: '${{ matrix.args }} --config ./src-tauri/tauri.commercial.conf.json' + args: '${{ matrix.args }} --config ./src-tauri/tauri.release.conf.json' diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 30fba3b4..b1034764 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -1282,7 +1282,6 @@ pub fn run() { .plugin(tauri_plugin_window_state::Builder::default().build()) .plugin(tauri_plugin_deep_link::init()) .plugin(tauri_plugin_shell::init()) - .plugin(tauri_plugin_updater::Builder::default().build()) .plugin(tauri_plugin_dialog::init()) .plugin(tauri_plugin_os::init()) .plugin(tauri_plugin_fs::init()) @@ -1300,6 +1299,11 @@ pub fn run() { builder = builder.plugin(yaak_license::init()); } + #[cfg(feature = "updater")] + { + builder = builder.plugin(tauri_plugin_updater::Builder::default().build()); + } + builder .setup(|app| { { diff --git a/src-tauri/tauri.commercial.conf.json b/src-tauri/tauri.release.conf.json similarity index 100% rename from src-tauri/tauri.commercial.conf.json rename to src-tauri/tauri.release.conf.json