Files
2026-11-02 09:50:37 +08:00

11 lines
287 B
PowerShell

$bun = Get-Command bun -ErrorAction SilentlyContinue
if (-not $bun) {
$bunPath = 'C:\Users\11937\.bun\bin\bun.exe'
if (-not (Test-Path -LiteralPath $bunPath)) {
throw '未找到 Bun,请先安装 Bun 1.1 或更高版本。'
}
& $bunPath run start
} else {
bun run start
}