From 7ee75e19ec110a11607c658d5ee80d0f6f875b3d Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Thu, 6 Jul 2023 14:50:46 -0400 Subject: [PATCH] only check for updates if packaged --- app/src/index.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/index.ts b/app/src/index.ts index c9d05837..09d5010c 100644 --- a/app/src/index.ts +++ b/app/src/index.ts @@ -135,10 +135,12 @@ autoUpdater.setFeedURL({ url: `https://ollama.ai/api/update?os=${process.platform}&arch=${process.arch}&version=${app.getVersion()}`, }) -autoUpdater.checkForUpdates() -setInterval(() => { +if (app.isPackaged) { autoUpdater.checkForUpdates() -}, 60000) + setInterval(() => { + autoUpdater.checkForUpdates() + }, 60000) +} autoUpdater.on('error', e => { console.error('update check failed', e)