2022-12-28 12:20:27 +03:00
|
|
|
Set-StrictMode -Version latest
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
|
2022-09-27 10:04:21 +03:00
|
|
|
powershell write-host -foregroundcolor Cyan "----- install system prerequisites -----"
|
2022-09-23 10:21:44 +03:00
|
|
|
|
2023-01-17 12:09:56 +03:00
|
|
|
# update vcpkg install
|
|
|
|
git -C ((Get-command vcpkg).Source | Split-Path) pull
|
|
|
|
|
2022-12-28 02:04:26 +03:00
|
|
|
# install libxml and libcurl[openssl]
|
2022-09-23 10:21:44 +03:00
|
|
|
$vcpkg_dir=(Get-command vcpkg).Source
|
2022-12-29 00:42:27 +03:00
|
|
|
|
|
|
|
if (Test-Path $vcpkg_dir\installed\x64-windows\lib\libcurl.lib) {echo "curl already installed"} else {vcpkg install curl:x64-windows}
|
2022-12-28 12:20:27 +03:00
|
|
|
if ($LASTEXITCODE) { Throw }
|
2022-12-29 00:42:27 +03:00
|
|
|
if (Test-Path $vcpkg_dir\installed\x64-windows\lib\libxml2.lib) {echo "libxml2 already installed"} else {vcpkg install libxml2:x64-windows}
|
2022-12-28 12:20:27 +03:00
|
|
|
if ($LASTEXITCODE) { Throw }
|
2022-12-29 00:42:27 +03:00
|
|
|
|
2022-09-23 10:21:44 +03:00
|
|
|
vcpkg update
|
2022-12-28 12:20:27 +03:00
|
|
|
if ($LASTEXITCODE) { Throw }
|
2022-12-29 00:42:27 +03:00
|
|
|
vcpkg upgrade
|
2022-12-28 12:20:27 +03:00
|
|
|
if ($LASTEXITCODE) { Throw }
|
2022-09-23 10:21:44 +03:00
|
|
|
vcpkg integrate install
|
2022-12-28 12:20:27 +03:00
|
|
|
if ($LASTEXITCODE) { Throw }
|
2022-09-23 10:21:44 +03:00
|
|
|
|
|
|
|
# update pip
|
|
|
|
python -m pip install --upgrade pip --quiet
|
2022-12-28 12:20:27 +03:00
|
|
|
if ($LASTEXITCODE) { Throw }
|