2022-12-28 12:20:27 +03:00
|
|
|
Set-StrictMode -Version latest
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
|
|
|
2023-04-05 12:07:50 +03:00
|
|
|
write-host -foregroundcolor Cyan "----- context -----"
|
2022-09-23 10:21:44 +03:00
|
|
|
|
|
|
|
# get windows infos
|
|
|
|
Get-ComputerInfo -Property WindowsProductName,WindowsVersion,OsHardwareAbstractionLayer
|
|
|
|
|
2023-04-05 12:07:50 +03:00
|
|
|
# get pwsh infos
|
2022-09-28 18:41:43 +03:00
|
|
|
(Get-Variable PSVersionTable -ValueOnly).PSVersion
|
|
|
|
|
2022-09-23 10:21:44 +03:00
|
|
|
# get vcpkg infos
|
|
|
|
vcpkg --version
|
2022-12-28 12:20:27 +03:00
|
|
|
if ($LASTEXITCODE) { Throw }
|
2022-09-23 10:21:44 +03:00
|
|
|
|
|
|
|
# get python infos
|
|
|
|
python -V
|
2022-12-28 12:20:27 +03:00
|
|
|
if ($LASTEXITCODE) { Throw }
|
2022-09-23 10:21:44 +03:00
|
|
|
|
|
|
|
# get cargo info
|
|
|
|
cargo --version
|
2022-12-28 12:20:27 +03:00
|
|
|
if ($LASTEXITCODE) { Throw }
|
2023-04-05 12:07:50 +03:00
|
|
|
|