mirror of
https://github.com/ollama/ollama.git
synced 2025-08-30 16:51:06 +02:00
desktop: check for updates on first load
This commit is contained in:
@@ -84,6 +84,7 @@ app.on('activate', () => {
|
|||||||
// code. You can also put them in separate files and import them here.
|
// code. You can also put them in separate files and import them here.
|
||||||
autoUpdater.setFeedURL({ url: `https://updates.ollama.ai/update/${process.platform}/${app.getVersion()}` })
|
autoUpdater.setFeedURL({ url: `https://updates.ollama.ai/update/${process.platform}/${app.getVersion()}` })
|
||||||
|
|
||||||
|
autoUpdater.checkForUpdates()
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
autoUpdater.checkForUpdates()
|
autoUpdater.checkForUpdates()
|
||||||
}, 60000)
|
}, 60000)
|
||||||
|
Reference in New Issue
Block a user