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 "----- context -----"
|
2022-09-23 10:21:44 +03:00
|
|
|
|
|
|
|
# get windows infos
|
|
|
|
Get-ComputerInfo -Property WindowsProductName,WindowsVersion,OsHardwareAbstractionLayer
|
|
|
|
|
2022-09-28 18:41:43 +03:00
|
|
|
# get powershell infos
|
|
|
|
(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 }
|