Skip to content

Commit

Permalink
fix: windows archive with powershell (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
bestickley authored Nov 17, 2023
1 parent f81ac21 commit 4f141e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/create-archive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function createArchive({ directory, zipFileName, fileGlob = '.', quiet }:
// TODO: test on windows
execSync(`Compress-Archive -Path '${directory}\\*' -DestinationPath '${zipFilePath}' -CompressionLevel Optimal`, {
stdio: 'inherit',
shell: 'powershell.exe',
});
} else {
execSync(`zip -ryq9 '${zipFilePath}' ${fileGlob}`, {
Expand Down

0 comments on commit 4f141e6

Please sign in to comment.