From e7709aca596a5367bde8e29249063cb81c5864f4 Mon Sep 17 00:00:00 2001 From: Michael Barker Date: Mon, 21 Oct 2024 07:34:22 -1100 Subject: [PATCH] [Build] Replace use of 7-zip in cppbuild.ps1 with the PowerShell built-in Expand-Archive. --- cppbuild/cppbuild.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cppbuild/cppbuild.ps1 b/cppbuild/cppbuild.ps1 index 87f68a70df..26627668bc 100644 --- a/cppbuild/cppbuild.ps1 +++ b/cppbuild/cppbuild.ps1 @@ -31,7 +31,6 @@ $CmakeBuildParallelLevel = [Environment]::ProcessorCount $DeleteBuildDir = $true $BuildConfig = "Release" -#foreach ($arg in $Args) for ($i = 0; $i -lt $Args.count; $i++) { $arg = $Args[$i] @@ -168,7 +167,7 @@ try $client.DownloadFile("https://github.com/Kitware/CMake/releases/download/v$CMakeVersion/cmake-$CMakeVersion-windows-x86_64.zip", "$PSScriptRoot\cmake-$CMakeVersion-windows-x86_64.zip") Push-Location $PSScriptRoot - 7z x "cmake-$CMakeVersion-windows-x86_64.zip" + Expand-Archive -LiteralPath "cmake-$CMakeVersion-windows-x86_64.zip" -DestinationPath "$PSScriptRoot" Remove-Item "cmake-$CMakeVersion-windows-x86_64.zip" Pop-Location }