From dc5c16ff1a374119754f2b361156a54e901f139f Mon Sep 17 00:00:00 2001 From: SethBurkart123 Date: Tue, 3 Nov 2026 17:33:43 +1100 Subject: [PATCH] Use Windows archive tools instead of Git Bash tar --- .github/workflows/release.yml | 2 +- scripts/package-extension-zips.mjs | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c93f6ae5..ddb47119 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/scripts/package-extension-zips.mjs b/scripts/package-extension-zips.mjs index 59c386a7..5ebfd717 100644 --- a/scripts/package-extension-zips.mjs +++ b/scripts/package-extension-zips.mjs @@ -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" }); }