Initial commit
This commit is contained in:
15
scripts/start.cjs
Normal file
15
scripts/start.cjs
Normal file
@@ -0,0 +1,15 @@
|
||||
const { spawn } = require("child_process");
|
||||
const electronPath = require("electron");
|
||||
|
||||
const env = { ...process.env };
|
||||
delete env.ELECTRON_RUN_AS_NODE;
|
||||
|
||||
const electron = spawn(electronPath, ["."], {
|
||||
stdio: "inherit",
|
||||
env
|
||||
});
|
||||
|
||||
electron.on("exit", (code) => {
|
||||
process.exit(code ?? 0);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user