diff --git a/src-tauri/src/app_auto_updater.rs b/src-tauri/src/app_auto_updater.rs index 37f986eb..96d2112a 100644 --- a/src-tauri/src/app_auto_updater.rs +++ b/src-tauri/src/app_auto_updater.rs @@ -2085,8 +2085,9 @@ pub async fn check_for_app_updates_manual() -> Result, Str // Global singleton instance static APP_AUTO_UPDATER: std::sync::LazyLock = std::sync::LazyLock::new(AppAutoUpdater::new); -static PENDING_INSTALLER_PATH: std::sync::LazyLock>> = - std::sync::LazyLock::new(|| std::sync::Mutex::new(None)); +/// The Windows installer that runs on the next user-initiated restart. +#[cfg(target_os = "windows")] +static PENDING_INSTALLER_PATH: std::sync::Mutex> = std::sync::Mutex::new(None); #[cfg(test)] mod tests {