Skip to content

Commit

Permalink
Merge pull request #9251 from Clem-Fern/fix-portable
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Nov 19, 2023
2 parents 3d83bc6 + 1e096ed commit b4abe29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
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 ??= ''
process.env.TABBY_CONFIG_DIRECTORY ??= app.getPath('userData')


import 'v8-compile-cache'
import './portable'
import 'source-map-support/register'
import './sentry'
import './lru'
Expand Down
2 changes: 1 addition & 1 deletion tabby-electron/src/services/updater.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b4abe29

Please sign in to comment.