We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b3c70af + 33a51a0 commit a985b34Copy full SHA for a985b34
src/core/zip.ts
@@ -14,11 +14,13 @@ export function unzip(file: string) {
14
if (file.endsWith("zip")) {
15
// It's a zip file
16
if (Deno.build.os === "windows") {
17
- const args = ["Expand-Archive", file, "-DestinationPath", dir];
18
- const quoted = requireQuoting(args);
+ const args = [
+ "-Command",
19
+ `"& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('${file}', '${dir}'); }"`,
20
+ ];
21
return safeWindowsExec(
22
"powershell",
- quoted.args,
23
+ args,
24
(cmd: string[]) => {
25
return execProcess(
26
{
0 commit comments