Files
cpa-plugin/scripts/build.ps1
T

14 lines
270 B
PowerShell

[CmdletBinding()]
param()
$ErrorActionPreference = 'Stop'
Push-Location (Split-Path -Parent $PSScriptRoot)
try {
& wsl.exe bash ./scripts/build.sh
} finally {
Pop-Location
}
if ($LASTEXITCODE -ne 0) {
throw "WSL 构建失败,退出码 $LASTEXITCODE。"
}