mirror of
https://github.com/ollama/ollama.git
synced 2025-03-26 17:51:48 +01:00
only check for updates if packaged
This commit is contained in:
parent
90d4ea9d71
commit
7ee75e19ec
@ -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…
x
Reference in New Issue
Block a user