Przeglądaj źródła

desktop: check for updates on first load

Jeffrey Morgan 1 rok temu
rodzic
commit
9934ad77c0
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      desktop/src/index.ts

+ 1 - 0
desktop/src/index.ts

@@ -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)