Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Use correct url for auto updates
Jeffrey Morgan832b4db9d4ba
diff --git a/app/src/index.ts b/app/src/index.tsindex d2a1734ca..28dac1362 100644--- a/app/src/index.ts+++ b/app/src/index.ts@@ -162,11 +162,14 @@ app.on('before-quit', () => {}})-let currentReleaseURL = ''+const updateURL = `https://ollama.ai/api/update?os=${process.platform}&arch=${+ process.arch+}&version=${app.getVersion()}&id=${id()}`+let latest = ''async function isNewReleaseAvailable() {try {- const response = await fetch('https://ollama.ai/api/update')+ const response = await fetch(updateURL)if (!response.ok) {return false@@ -183,11 +186,12 @@ async function isNewReleaseAvailable() {return false}- if (url === currentReleaseURL) {+ if (latest === url) {return false}- currentReleaseURL = url+ latest = url+return true} catch (error) {logger.error(`update check failed - ${error}`)@@ -285,11 +289,7 @@ function id(): string {return uuid}-autoUpdater.setFeedURL({- url: `https://ollama.ai/api/update?os=${process.platform}&arch=${- process.arch- }&version=${app.getVersion()}&id=${id()}`,-})+autoUpdater.setFeedURL({ url: updateURL })autoUpdater.on('error', e => {logger.error(`update check failed - ${e.message}`)