8000 Getting Expand-Archive error on self-hosted Windows server · Issue #32 · typst-community/setup-typst · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Getting Expand-Archive error on self-hosted Windows server #32
Closed
@yusancky

Description

@yusancky

After downloading Typst on self-hosted Windows server, the action used powershell to run the following command with an error.

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath 'C:\Users\yusancky\Desktop\actions-runner\_work\_temp\da208554-af3c-45b9-986c-0670b622745a' -DestinationPath 'C:\Users\yusancky\Desktop\actions-runner\_work\_temp\5f410b4c-aed3-4ca1-a3d3-6cd70f891ff4' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('C:\Users\yusancky\Desktop\actions-runner\_work\_temp\da208554-af3c-45b9-986c-0670b622745a', 'C:\Users\yusancky\Desktop\actions-runner\_work\_temp\5f410b4c-aed3-4ca1-a3d3-6cd70f891ff4', $true) }"

Expand-Archive :  is not a supported archive file format. .zip is the only supported archive file format.

This question seems to be common, and you can search for a lot of related issues on GitHub.

I've noticed that PR actions/setup-python#916 might be a viable solution.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0