From 2be079a51b6c668a217bdd7f77886f63e786763a Mon Sep 17 00:00:00 2001 From: Clem Fern Date: Sun, 19 Nov 2023 13:22:57 +0100 Subject: [PATCH 1/2] fix: use data folder on portable app --- app/lib/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/lib/index.ts b/app/lib/index.ts index c98757b2..cc55f413 100644 --- a/app/lib/index.ts +++ b/app/lib/index.ts @@ -1,5 +1,8 @@ import { app, ipcMain, Menu, dialog } from 'electron' +// set userData Path on portable version +import './portable' + // set defaults of environment variables import 'dotenv/config' process.env.TABBY_PLUGINS ??= '' @@ -7,7 +10,6 @@ process.env.TABBY_CONFIG_DIRECTORY ??= app.getPath('userData') import 'v8-compile-cache' -import './portable' import 'source-map-support/register' import './sentry' import './lru' From 1e096ede7785eca00da99eff7e96ab68590805ad Mon Sep 17 00:00:00 2001 From: Clem Fern Date: Sun, 19 Nov 2023 13:25:30 +0100 Subject: [PATCH 2/2] fix: do not use installer to update portable version Eugeny/tabby#7768 --- tabby-electron/src/services/updater.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabby-electron/src/services/updater.service.ts b/tabby-electron/src/services/updater.service.ts index ca03bdb1..ae6132a9 100644 --- a/tabby-electron/src/services/updater.service.ts +++ b/tabby-electron/src/services/updater.service.ts @@ -25,7 +25,7 @@ export class ElectronUpdaterService extends UpdaterService { super() this.logger = log.create('updater') - if (process.platform === 'linux') { + if (process.platform === 'linux' || process.env.PORTABLE_EXECUTABLE_FILE) { this.electronUpdaterAvailable = false return }