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

+1 -1
View File
@@ -48,7 +48,7 @@ jobs:
SOURCES_ZIP: ${{ steps.build.outputs.sources_zip }}
run: |
mkdir "$RUNNER_TEMP/source-rebuild"
tar -xf "$SOURCES_ZIP" -C "$RUNNER_TEMP/source-rebuild"
powershell -NoProfile -Command 'Expand-Archive -LiteralPath $env:SOURCES_ZIP -DestinationPath "$env:RUNNER_TEMP/source-rebuild"'
cd "$RUNNER_TEMP/source-rebuild"
npm ci
npm run build:firefox
+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" });
}