From 358e42196a6363a9b49d2e4e172d3747672718f2 Mon Sep 17 00:00:00 2001 From: drakezhang Date: Wed, 9 Sep 2026 19:31:03 +0800 Subject: [PATCH] fix(installer): extract bracketed paths on Windows PowerShell --- install.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.ps1 b/install.ps1 index 5fb4a79..8558012 100644 --- a/install.ps1 +++ b/install.ps1 @@ -213,7 +213,9 @@ function Main { } Write-Log "extracting ${archiveName}" - Expand-Archive -LiteralPath $archivePath -DestinationPath $tempDir -Force + # PowerShell 5.1's Expand-Archive treats the destination as a wildcard path. + Add-Type -AssemblyName System.IO.Compression.FileSystem + [System.IO.Compression.ZipFile]::ExtractToDirectory($archivePath, $tempDir) if (-not (Test-Path -LiteralPath (Join-Path $tempDir "bsk.exe"))) { Write-Die "bsk.exe not found in archive"