desktop: check for updates on first load

This commit is contained in:
Jeffrey Morgan 2023-06-28 09:14:50 -04:00
parent 50aca43122
commit 9934ad77c0

View file

@ -84,6 +84,7 @@ app.on('activate', () => {
// 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.checkForUpdates()
setInterval(() => {
autoUpdater.checkForUpdates()
}, 60000)