From 3e0e263b99e2d35459cb3b1b5d9e27d882850a2b Mon Sep 17 00:00:00 2001 From: Alphrag <34252790+Alphrag@users.noreply.github.com> Date: Sun, 18 Dec 2022 00:58:50 +0100 Subject: Fix issues with executable when using portable on windows (#850) * Fix startup executable for windows portable * Set folder name of unpacking for windows portable exe --- src/environment.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/environment.ts') diff --git a/src/environment.ts b/src/environment.ts index 5838f1d53..0ba7774cd 100644 --- a/src/environment.ts +++ b/src/environment.ts @@ -5,6 +5,7 @@ import { arch, release } from 'os'; export const isMac = process.platform === 'darwin'; export const isWindows = process.platform === 'win32'; export const isLinux = process.platform === 'linux'; +export const isWinPortable = process.env.PORTABLE_EXECUTABLE_FILE != null; export const electronVersion: string = process.versions.electron ?? ''; export const chromeVersion: string = process.versions.chrome ?? ''; -- cgit v1.2.3-70-g09d2