mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-12 11:30:01 -04:00
Test again for Windows support
This commit is contained in:
parent
4df092d2da
commit
0434e55c69
1 changed files with 4 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
import { readFile, writeFile, unlink, mkdir, rm } from 'node:fs/promises';
|
import { readFile, writeFile, unlink, mkdir, rm } from 'node:fs/promises';
|
||||||
import { exec, fork } from 'node:child_process';
|
import { exec, spawn } from 'node:child_process';
|
||||||
import { fileURLToPath } from 'node:url';
|
import { fileURLToPath } from 'node:url';
|
||||||
import { build } from 'esbuild';
|
import { build } from 'esbuild';
|
||||||
|
|
||||||
|
@ -27,12 +27,11 @@ for(let i = 2; i < process.argv.length; i++)
|
||||||
console.log(stdout);
|
console.log(stdout);
|
||||||
});
|
});
|
||||||
else {
|
else {
|
||||||
const server = fork(
|
const server = spawn("node",
|
||||||
fileURLToPath(new URL("./backend.js", import.meta.url)),
|
[fileURLToPath(new URL("./backend.js", import.meta.url))],
|
||||||
{detached: true}
|
{cwd: process.cwd(), stdio: "inherit", detached: true}
|
||||||
);
|
);
|
||||||
server.unref();
|
server.unref();
|
||||||
server.disconnect();
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue