fix: 闪屏后启动带 Bookworm 标题的终端窗口

This commit is contained in:
bookworm 2026-04-10 12:29:54 +08:00
parent 38b2a2d022
commit 722190404a

View File

@ -1413,6 +1413,12 @@ if ($allOK -and $env:ANTHROPIC_API_KEY) {
$splash.Close()
$splash.Dispose()
# 启动 Bookworm — 带品牌标题的 PowerShell 窗口
if (-not $SkipLaunch) {
$launchCmd = "title Bookworm Smart Assistant v$BWVersion && cd /d `"$BootDir`" && claude --dangerously-skip-permissions"
Start-Process -FilePath "cmd.exe" -ArgumentList "/k", $launchCmd
}
} else {
Bw-Log "DONE" "安装完成但部分受限 allOK=$allOK hasKey=$($env:ANTHROPIC_API_KEY -ne $null)"