gwen: Extract conpty nupkg with tar on Windows PowerShell 5.1

This commit is contained in:
yenru0 committed 2026-09-23 04:35:29 +09:00
1 parent aa69163256
commit 1521cc7f3f
1 file changed
+4 -1
+4 -1
View File
@@ -236,7 +236,10 @@ function DownloadConpty {
$url = "https://github.com/microsoft/terminal/releases/download/v1.23.13503.0/Microsoft.Windows.Console.ConPTY.1.23.251216003.nupkg"
$zipPath = ".\Microsoft.Windows.Console.ConPTY.1.23.251216003.nupkg"
Invoke-WebRequest -Uri $url -OutFile $zipPath
Expand-Archive -Path $zipPath -DestinationPath ".\conpty" -Force
New-Item -Path ".\conpty" -ItemType Directory -Force
# Expand-Archive (PS 5.1) rejects the .nupkg extension; the file is a zip
# and tar.exe handles it.
tar -xf $zipPath -C ".\conpty"
}
function DownloadPdfium {