Skip to content

Commit f18574b

Browse files
committed
docs: add shell spawn comments to remaining call sites
1 parent ba68eef commit f18574b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

apps/server/scripts/cli.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ const publishCmd = Command.make(
227227
cwd: serverDir,
228228
stdout: config.verbose ? "inherit" : "ignore",
229229
stderr: "inherit",
230+
// Windows needs shell mode to resolve .cmd shims.
230231
shell: process.platform === "win32",
231232
}),
232233
);

scripts/build-desktop-artifact.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* (
644644
ChildProcess.make({
645645
cwd: stageAppDir,
646646
...commandOutputOptions(options.verbose),
647+
// Windows needs shell mode to resolve .cmd shims (e.g. bun.cmd).
647648
shell: process.platform === "win32",
648649
})`bun install --production`,
649650
);
@@ -683,6 +684,7 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* (
683684
cwd: stageAppDir,
684685
env: buildEnv,
685686
...commandOutputOptions(options.verbose),
687+
// Windows needs shell mode to resolve .cmd shims.
686688
shell: process.platform === "win32",
687689
})`bunx electron-builder ${platformConfig.cliFlag} --${options.arch} --publish never`,
688690
);

0 commit comments

Comments
 (0)