feat: 编译exe问题调试

This commit is contained in:
duanshuwen
2026-03-19 08:45:07 +08:00
parent 67850c63f7
commit c4a0e4f9a4
11 changed files with 660 additions and 115 deletions

View File

@@ -26,9 +26,10 @@ export class executeScriptService extends EventEmitter {
const channels = options?.channels ?? '';
const startTabIndex = options?.startTabIndex ?? '';
const child = spawn('node', [scriptPath], {
const child = spawn(process.execPath, [scriptPath], {
env: {
...process.env,
ELECTRON_RUN_AS_NODE: '1',
ROOM_TYPE: String(roomType),
START_DATE: String(startTime),
END_DATE: String(endTime),