feat(desktop): wire resolve-env into main process startup

This commit is contained in:
CREDO23 2026-03-17 17:13:31 +02:00
parent caed67eb3f
commit 1c6c7360e4

View file

@ -1,6 +1,7 @@
import { app, BrowserWindow, shell, ipcMain } from 'electron';
import path from 'path';
import { spawn, ChildProcess } from 'child_process';
import { resolveEnv } from './resolve-env';
const isDev = !app.isPackaged;
let mainWindow: BrowserWindow | null = null;
@ -24,6 +25,7 @@ function startNextServer(): Promise<void> {
}
const standalonePath = getStandalonePath();
resolveEnv(standalonePath);
const serverScript = path.join(standalonePath, 'server.js');
serverProcess = spawn(process.execPath, [serverScript], {