Skip to content

Commit

Permalink
Use the native Expand-Archive command on Windows instead of 7-Zip
Browse files Browse the repository at this point in the history
7-Zip is installed on our CI environments, but is not installed by default on Windows.
  • Loading branch information
chalcolith committed Dec 5, 2024
1 parent 0526b9d commit 536f8ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function BuildLibs
$pcre2Zip = "$pcre2.zip"
$pcre2ZipTgt = Join-Path -Path $libsDir -ChildPath $pcre2Zip
if (-not (Test-Path $pcre2ZipTgt)) { Invoke-WebRequest -TimeoutSec 300 -Uri "https://github.com/PhilipHazel/pcre2/releases/download/$pcre2/$pcre2Zip" -OutFile $pcre2ZipTgt }
7z.exe x -y $pcre2ZipTgt "-o$libsDir"
Expand-Archive -Path $pcre2ZipTgt -DestinationPath "$libsDir"
if ($LastExitCode -ne 0) { throw "Error downloading and unzipping $pcre2Zip" }
}

Expand Down

0 comments on commit 536f8ee

Please sign in to comment.