first commit
This commit is contained in:
commit
ff482ebe23
251 files changed
+19126
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import { spawn } from 'node:child_process';
|
||||
import { createRequire } from 'node:module';
|
||||
const electron=createRequire(import.meta.url)('electron');
|
||||
const env={...process.env};
|
||||
for(const name of ['ADMIN_TOKEN','OIDC_CLIENT_SECRET','AI_API_KEY','INSPECTOR_TOKEN','SIEM_HTTP_TOKEN','SIEM_KEY_FILE'])delete env[name];
|
||||
const child=spawn(electron,['.'],{stdio:'inherit',env,windowsHide:true});child.on('exit',code=>process.exit(code??1));
|
||||
process.on('SIGINT',()=>child.kill());process.on('SIGTERM',()=>child.kill());
|
||||
Reference in new issue
Block a user