mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-12-06 19:56:45 +10:30
Use Windows archive tools instead of Git Bash tar
This commit is contained in:
1 parent
a5dfb38791
commit
dc5c16ff1a
2 files changed
+6
-4
No files matched your search
@@ -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" });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user