← Files LexMount 云浏览器ARCHIVED FILE
skills/lexmount-cloud-browser/scripts/doctor.ps1
691 Bytes · Oct 4, 2026 · 12:34 UTC
$ErrorActionPreference = "Stop"
$architecture = if ($env:PROCESSOR_ARCHITEW6432) { $env:PROCESSOR_ARCHITEW6432 } else { $env:PROCESSOR_ARCHITECTURE }
if ($architecture -ne "AMD64") {
Write-Output '{"ok":false,"error":"unsupported_platform","message":"This Skill supports Windows x64 through scripts/doctor.ps1, and macOS arm64 and Linux x86_64 through scripts/doctor.sh."}'
exit 2
}
$skillBinary = Join-Path (Split-Path -Parent $PSScriptRoot) "bin\browser-cli.exe"
if (Test-Path $skillBinary) { & $skillBinary doctor; exit $LASTEXITCODE }
Write-Output '{"ok":false,"error":"command_not_found","message":"Skill-local browser-cli.exe is missing. Run scripts/bootstrap.ps1 first."}'
exit 1
SHA-256: f8bc5806ba0459d642563f9c4991b58222705c819df3caa3689d0173145515c7