update launcher frontend
This commit is contained in:
+4
-1
@@ -876,9 +876,12 @@ function createWindow(): void {
|
||||
if (spawnPath) {
|
||||
const useDevLauncher = is.dev && spawnPath === resolvedDevAppPath
|
||||
const launchUrlArg = url ? [`--url=${encodeURIComponent(url)}`] : []
|
||||
const noSandboxArg = !useDevLauncher && process.platform === 'linux' && spawnPath.toLowerCase().endsWith('.appimage')
|
||||
? ['--no-sandbox']
|
||||
: []
|
||||
const args = useDevLauncher
|
||||
? ['run', 'dev']
|
||||
: [...launchUrlArg, ...authLaunchArgs, ...(authProtocolUrl ? [authProtocolUrl] : [])]
|
||||
: [...noSandboxArg, ...launchUrlArg, ...authLaunchArgs, ...(authProtocolUrl ? [authProtocolUrl] : [])]
|
||||
const execBin = useDevLauncher ? 'npm' : spawnPath
|
||||
|
||||
const childEnv = { ...process.env }
|
||||
|
||||
Reference in New Issue
Block a user