diff --git a/src-tauri/src/commands/updater.rs b/src-tauri/src/commands/updater.rs index c38d32b..2eba46b 100644 --- a/src-tauri/src/commands/updater.rs +++ b/src-tauri/src/commands/updater.rs @@ -14,8 +14,10 @@ pub struct UpdateInfo { /// Check Gitea for the latest release and compare with current version. #[tauri::command] -pub async fn check_for_updates() -> Result { - let current = env!("CARGO_PKG_VERSION").to_string(); +pub async fn check_for_updates(app_handle: tauri::AppHandle) -> Result { + // Read version from tauri.conf.json (patched by CI from git tag) + // rather than CARGO_PKG_VERSION which is always 0.1.0 + let current = app_handle.config().version.clone().unwrap_or_else(|| "0.0.0".to_string()); let client = reqwest::Client::builder() .timeout(std::time::Duration::from_secs(10))