From 582036bac025feccb2fbd3ac5f7823b32976e76a Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Tue, 27 Jun 2023 17:09:41 -0400 Subject: [PATCH] desktop: add auto update url --- desktop/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop/src/index.ts b/desktop/src/index.ts index 57de8a16..81b1ddac 100644 --- a/desktop/src/index.ts +++ b/desktop/src/index.ts @@ -1,4 +1,4 @@ -import { app, BrowserWindow, ipcMain, dialog } from 'electron' +import { app, BrowserWindow, autoUpdater } from 'electron' import { spawn } from 'child_process' import * as path from 'path' @@ -82,3 +82,4 @@ 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()}` })