From 4ab1da38ba2b061b0f2146e9f15568d791845466 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Thu, 10 Aug 2023 14:11:54 -0700 Subject: [PATCH] guard around `id()` --- app/src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/index.ts b/app/src/index.ts index b137c745..a0c11e15 100644 --- a/app/src/index.ts +++ b/app/src/index.ts @@ -236,7 +236,11 @@ app.on('window-all-closed', () => { // 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. -const aid = id() +let aid = '' +try { + aid = id() +} catch (e) {} + autoUpdater.setFeedURL({ url: `https://ollama.ai/api/update?os=${process.platform}&arch=${process.arch}&version=${app.getVersion()}&id=${aid}`, })