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
@@ -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
|
||||
|
||||
@@ -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