Skip to content
Source
Sign inSign up
pingdotgg/t3code

Fix ChildProcess.spawn failing on Windows for .cmd shims #495

Mergedchuks-qua(GitHub profile, opens in a new tab)merged 3 commits intomain fromrefs/pull/495/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 3 changed files with 10 additions and 0 deletions.

x
0 of 3 viewed, 3 left
2 additions and 0 deletionsapps/server/scripts/cli.tsModified
View file
@@ -132,6 +132,7 @@
cwd: serverDir,
stdout: config.verbose ? "inherit" : "ignore",
stderr: "inherit",
+ // Windows needs shell mode to resolve .cmd shims (e.g. bun.cmd).
shell: process.platform === "win32",
})`bun tsdown`,
@@ -226,6 +227,7 @@
cwd: serverDir,
stdout: config.verbose ? "inherit" : "ignore",
stderr: "inherit",
+ // Windows needs shell mode to resolve .cmd shims.
shell: process.platform === "win32",
}),
6 additions and 0 deletionsscripts/build-desktop-artifact.tsModified
View file
@@ -580,6 +580,8 @@
ChildProcess.make({
cwd: repoRoot,
...commandOutputOptions(options.verbose),
+ // Windows needs shell mode to resolve .cmd shims (e.g. bun.cmd).
+ shell: process.platform === "win32",
})`bun run build:desktop`,