Files
cpa-plugin/scripts/check-env.ps1
T

18 lines
494 B
PowerShell

[CmdletBinding()]
param()
$ErrorActionPreference = 'Stop'
function Resolve-Tool([string]$Name) {
$tool = Get-Command $Name -ErrorAction SilentlyContinue
if ($null -eq $tool) {
throw "缺少 $Name,请先安装并加入 PATH。"
}
return $tool.Source
}
$go = Resolve-Tool 'go'
Write-Host "Go: $(& $go version)"
Write-Host 'CLIProxyAPI target: ABI 1 / RPC schema 3'
Write-Warning '本项目默认在 WSL/Linux 构建;请优先运行 wsl bash ./scripts/build.sh。'