better windows compat
This commit is contained in:
parent
a85d8fc1f8
commit
7b06078e7c
@ -6,18 +6,30 @@ export const getServerStartCommands = (
|
|||||||
): Deno.Command => {
|
): Deno.Command => {
|
||||||
switch (loader) {
|
switch (loader) {
|
||||||
case "forge":
|
case "forge":
|
||||||
return new Deno.Command(
|
return Deno.build.os === "windows"
|
||||||
Deno.build.os === "windows" ? "./run.bat" : "./run.sh",
|
? new Deno.Command(
|
||||||
// "pwd",
|
"cmd.exe",
|
||||||
{
|
{
|
||||||
args: [
|
args: [
|
||||||
"nogui",
|
"./run.bat",
|
||||||
],
|
"nogui",
|
||||||
stdin: "piped",
|
],
|
||||||
stdout: "piped",
|
stdin: "piped",
|
||||||
cwd: "./" + instance,
|
stdout: "piped",
|
||||||
},
|
cwd: "./" + instance,
|
||||||
);
|
},
|
||||||
|
)
|
||||||
|
: new Deno.Command(
|
||||||
|
"./run.sh",
|
||||||
|
{
|
||||||
|
args: [
|
||||||
|
"nogui",
|
||||||
|
],
|
||||||
|
stdin: "piped",
|
||||||
|
stdout: "piped",
|
||||||
|
cwd: "./" + instance,
|
||||||
|
},
|
||||||
|
);
|
||||||
case "vanilla":
|
case "vanilla":
|
||||||
case "unset":
|
case "unset":
|
||||||
case "fabric":
|
case "fabric":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user