Use Windows archive tools instead of Git Bash tar

This commit is contained in:
SethBurkart123 committed 2026-11-03 17:33:43 +11:00
1 parent a5dfb38791
commit dc5c16ff1a
2 files changed
+6 -4

No files matched your search

+5 -3
View File
@@ -26,9 +26,11 @@ function zipDirectory(sourceRel, outRel) {
if (existsSync(outZip)) unlinkSync(outZip);
if (process.platform === "win32") {
execFileSync("tar", ["-a", "-cf", outZip, "-C", sourceDir, "--", ...readdirSync(sourceDir)], {
stdio: "inherit",
});
execFileSync(
join(process.env.SystemRoot, "System32", "tar.exe"),
["-a", "-cf", outZip, "-C", sourceDir, "--", ...readdirSync(sourceDir)],
{ stdio: "inherit" },
);
} else {
execFileSync("zip", ["-r", "-q", outZip, "."], { cwd: sourceDir, stdio: "inherit" });
}