Skip to content

Commit fa9bd09

Browse files
committed
fix(quoteforge[dist]): use Compress-Archive for Windows zip step
1 parent 46ce323 commit fa9bd09

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/build-binaries.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ async function tarGz(binPath: string, archivePath: string, binName: string): Pro
4040
}
4141

4242
async function zip(binPath: string, archivePath: string, binName: string): Promise<void> {
43+
if (process.platform === "win32") {
44+
await $`powershell -NoProfile -Command Compress-Archive -Path ${binPath} -DestinationPath ${archivePath} -Force`;
45+
return;
46+
}
4347
const cwd = resolve(binPath, "..");
4448
await $`cd ${cwd} && zip -q ${archivePath} ${binName}`;
4549
}

0 commit comments

Comments
 (0)