From 536f8ee2a06d1d1ecd330e09184e24ea57e6d3c2 Mon Sep 17 00:00:00 2001 From: Gordon Tisher Date: Thu, 5 Dec 2024 10:30:29 -0800 Subject: [PATCH] Use the native `Expand-Archive` command on Windows instead of 7-Zip 7-Zip is installed on our CI environments, but is not installed by default on Windows. --- make.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make.ps1 b/make.ps1 index 4cb7a9a..808bbc1 100644 --- a/make.ps1 +++ b/make.ps1 @@ -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" } }