浏览代码

fix: do not use installer to update portable version Eugeny/tabby#7768

Clem Fern 1 年之前
父节点
当前提交
1e096ede77
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tabby-electron/src/services/updater.service.ts

+ 1 - 1
tabby-electron/src/services/updater.service.ts

@@ -25,7 +25,7 @@ export class ElectronUpdaterService extends UpdaterService {
         super()
         super()
         this.logger = log.create('updater')
         this.logger = log.create('updater')
 
 
-        if (process.platform === 'linux') {
+        if (process.platform === 'linux' || process.env.PORTABLE_EXECUTABLE_FILE) {
             this.electronUpdaterAvailable = false
             this.electronUpdaterAvailable = false
             return
             return
         }
         }