mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 07:46:59 +00:00
only check for updates if packaged
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user