瀏覽代碼

add version

Jeffrey Morgan 1 年之前
父節點
當前提交
8b57e715a7
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      app/src/index.ts

+ 4 - 2
app/src/index.ts

@@ -15,7 +15,6 @@ if (!SingleInstanceLock) {
 }
 
 const createSystemtray = () => {
-
   let iconPath = path.join(__dirname, '..', '..', 'assets', 'ollama_icon_16x16Template.png')
 
   if (app.isPackaged) {
@@ -84,7 +83,7 @@ function installCLI() {
     .showMessageBox({
       type: 'info',
       title: 'Ollama CLI installation',
-      message: 'To make the Ollama command line work in your terminal, it needs administrator privileges.',
+      message: 'To make the Ollama command work in your terminal, it needs administrator privileges.',
       buttons: ['OK'],
     })
     .then(result => {
@@ -167,6 +166,9 @@ async function heartbeat() {
   analytics.track({
     anonymousId: id(),
     event: 'heartbeat',
+    properties: {
+      version: app.getVersion(),
+    },
   })
 }