|
@@ -71,7 +71,6 @@ function firstRunWindow() {
|
|
nodeIntegration: true,
|
|
nodeIntegration: true,
|
|
contextIsolation: false,
|
|
contextIsolation: false,
|
|
},
|
|
},
|
|
- alwaysOnTop: true,
|
|
|
|
})
|
|
})
|
|
|
|
|
|
require('@electron/remote/main').enable(welcomeWindow.webContents)
|
|
require('@electron/remote/main').enable(welcomeWindow.webContents)
|
|
@@ -237,13 +236,14 @@ app.on('window-all-closed', () => {
|
|
|
|
|
|
// In this file you can include the rest of your app's specific main process
|
|
// 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.
|
|
// code. You can also put them in separate files and import them here.
|
|
|
|
+const aid = id()
|
|
autoUpdater.setFeedURL({
|
|
autoUpdater.setFeedURL({
|
|
- url: `https://ollama.ai/api/update?os=${process.platform}&arch=${process.arch}&version=${app.getVersion()}`,
|
|
|
|
|
|
+ url: `https://ollama.ai/api/update?os=${process.platform}&arch=${process.arch}&version=${app.getVersion()}&id=${aid}`,
|
|
})
|
|
})
|
|
|
|
|
|
async function heartbeat() {
|
|
async function heartbeat() {
|
|
analytics.track({
|
|
analytics.track({
|
|
- anonymousId: id(),
|
|
|
|
|
|
+ anonymousId: aid,
|
|
event: 'heartbeat',
|
|
event: 'heartbeat',
|
|
properties: {
|
|
properties: {
|
|
version: app.getVersion(),
|
|
version: app.getVersion(),
|