auto updater for macos

This commit is contained in:
Jeffrey Morgan
2023-07-06 00:04:06 -04:00
parent 8cc92447e3
commit 7bf3212c5b
4 changed files with 307 additions and 4 deletions

View File

@@ -82,7 +82,9 @@ app.on('activate', () => {
// In this file you can include the rest of your app's specific main process
// 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://ollama.ai/api/update?os=${process.platform}&arch=${process.arch}&version=${app.getVersion()}`,
})
autoUpdater.checkForUpdates()
setInterval(() => {