only check for updates if packaged
This commit is contained in:
parent
90d4ea9d71
commit
7ee75e19ec
1 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue