mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-27 17:56:25 +02:00
feat(desktop): wire resolve-env into main process startup
This commit is contained in:
parent
caed67eb3f
commit
1c6c7360e4
1 changed files with 2 additions and 0 deletions
|
|
@ -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], {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue