Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix: make updater quit app immediately

Gabriel Steindb1ad0154cef
diff --git a/package.json b/package.json
index 3a4727dfe..2a80f84b6 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "open-wispr",
- "version": "0.0.4-alpha",
+ "version": "0.0.5-alpha",
"description": "A desktop dictation application using OpenAI Whisper for speech-to-text transcription",
"main": "main.js",
"private": true,
diff --git a/src/updater.js b/src/updater.js
index 7ae6a1bc0..1a2c92004 100644
--- a/src/updater.js
+++ b/src/updater.js
@@ -166,8 +166,20 @@ class UpdateManager {
};
}
+ if (!this.updateDownloaded) {
+ console.error("❌ No update downloaded to install");
+ return {
+ success: false,
+ message: "No update available to install",
+ };
+ }
+
console.log("🔄 Installing update and restarting...");
- autoUpdater.quitAndInstall();
+
+ // Use setImmediate to ensure the response is sent before quitting
+ setImmediate(() => {
+ autoUpdater.quitAndInstall();
+ });
return { success: true, message: "Update installation started" };
} catch (error) {