Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
feat: add periodic update check every 4 hours
Gabriel Stein06da9d4bb3fb
diff --git a/src/updater.js b/src/updater.jsindex 397268519..b4f5af6f8 100644--- a/src/updater.js+++ b/src/updater.js@@ -10,6 +10,7 @@ class UpdateManager {this.isInstalling = false;this.isDownloading = false;this.eventListeners = [];+ this.updateCheckInterval = null;this.setupAutoUpdater();}@@ -304,16 +305,30 @@ class UpdateManager {checkForUpdatesOnStartup() {if (process.env.NODE_ENV !== "development") {+ // Initial check after 3 secondssetTimeout(() => {console.log("π Checking for updates on startup...");autoUpdater.checkForUpdates().catch((err) => {console.error("Startup update check failed:", err);});}, 3000);++ // Periodic check every 4 hours so long-running sessions still discover updates+ const FOUR_HOURS_MS = 4 * 60 * 60 * 1000;+ this.updateCheckInterval = setInterval(() => {+ console.log("π Periodic update check...");+ autoUpdater.checkForUpdates().catch((err) => {+ console.error("Periodic update check failed:", err);+ });+ }, FOUR_HOURS_MS);}}cleanup() {+ if (this.updateCheckInterval) {+ clearInterval(this.updateCheckInterval);+ this.updateCheckInterval = null;+ }this.eventListeners.forEach(({ event, handler }) => {autoUpdater.removeListener(event, handler);});