fix: treat Windows platform labels as Windows for node shell (#1760)

Thanks @ymat19.

Co-authored-by: ymat19 <45934497+ymat19@users.noreply.github.com>
This commit is contained in:
Peter Steinberger
2026-01-25 12:56:02 +00:00
parent 4e23b7f654
commit 7a5e103a6a
3 changed files with 42 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ export function buildNodeShellCommand(command: string, platform?: string | null)
const normalized = String(platform ?? "")
.trim()
.toLowerCase();
if (normalized === "win32") {
if (normalized.startsWith("win")) {
return ["cmd.exe", "/d", "/s", "/c", command];
}
return ["/bin/sh", "-lc", command];