Commit 7ee75e19 authored by Jeffrey Morgan's avatar Jeffrey Morgan
Browse files

only check for updates if packaged

parent 90d4ea9d
...@@ -135,10 +135,12 @@ autoUpdater.setFeedURL({ ...@@ -135,10 +135,12 @@ autoUpdater.setFeedURL({
url: `https://ollama.ai/api/update?os=${process.platform}&arch=${process.arch}&version=${app.getVersion()}`, url: `https://ollama.ai/api/update?os=${process.platform}&arch=${process.arch}&version=${app.getVersion()}`,
}) })
autoUpdater.checkForUpdates() if (app.isPackaged) {
setInterval(() => {
autoUpdater.checkForUpdates() autoUpdater.checkForUpdates()
}, 60000) setInterval(() => {
autoUpdater.checkForUpdates()
}, 60000)
}
autoUpdater.on('error', e => { autoUpdater.on('error', e => {
console.error('update check failed', e) console.error('update check failed', e)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment