mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-25 19:17:39 +03:00
Merge pull request #9251 from Clem-Fern/fix-portable
This commit is contained in:
commit
b4abe29c51
@ -1,5 +1,8 @@
|
|||||||
import { app, ipcMain, Menu, dialog } from 'electron'
|
import { app, ipcMain, Menu, dialog } from 'electron'
|
||||||
|
|
||||||
|
// set userData Path on portable version
|
||||||
|
import './portable'
|
||||||
|
|
||||||
// set defaults of environment variables
|
// set defaults of environment variables
|
||||||
import 'dotenv/config'
|
import 'dotenv/config'
|
||||||
process.env.TABBY_PLUGINS ??= ''
|
process.env.TABBY_PLUGINS ??= ''
|
||||||
@ -7,7 +10,6 @@ process.env.TABBY_CONFIG_DIRECTORY ??= app.getPath('userData')
|
|||||||
|
|
||||||
|
|
||||||
import 'v8-compile-cache'
|
import 'v8-compile-cache'
|
||||||
import './portable'
|
|
||||||
import 'source-map-support/register'
|
import 'source-map-support/register'
|
||||||
import './sentry'
|
import './sentry'
|
||||||
import './lru'
|
import './lru'
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user