pi-launcher: macOS/Windows desktop launcher for @agegr/pi-web

按需启动 pi-web 本地 Web UI(端口 30141,URL http://localhost:30141/),
基于 Wails v2 (Go + Vue 3) 构建,逻辑与 dsh-launcher 同构但适配 pi:
- 命令 pi-web、端口 30141、~/.pi/ 凭据
- 接管旧进程(关 app 不留 node 残留)
- 三栏环境检查(Node / pi-web CLI / 端口)

构建:
  macOS:   ./scripts/build-mac.sh
  Windows: scripts\build-windows.bat

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-09-14 16:55:15 +08:00
co-authored by Claude
commit b749b4e0e5
34 changed files with 5060 additions and 0 deletions
+65
View File
@@ -0,0 +1,65 @@
# ─── Go ───────────────────────────────────────────────
# 编译产物(.app/.exe 整个目录)
build/bin/
# go build 出来的裸 binary(--selftest 等调试命令)
/pi-launcher
# macOS 开发期构建的 Info.plist(带 dev id),不入仓;release 用 Info.plist 入仓
build/darwin/Info.dev.plist
# Windows 打包临时
build/windows/installer/
build/windows/wails.exe.manifest
# Go 覆盖率/测试产物
*.test
*.out
coverage.*
# ─── Node / Vite / Wails 前端 ────────────────────────
node_modules/
frontend/dist/
# frontend/wailsjs/ 是 wails build 自动生成的 JS 绑定,建议入仓(clone 后开箱即用)
# 顶部 banner 图片是 build 临时文件,不入仓
frontend/src/assets/images/banner.png
# ─── Wails 框架生成的本地开发配置 ─────────────────────
# wails.json 是项目配置,应该 commit
# 但 build/ 下生成的 Info.plist / icon.icns 已经包含在 build/bin/,无需额外忽略
# ─── macOS ───────────────────────────────────────────
.DS_Store
.AppleDouble
.LSOverride
Icon?
._*
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# ─── Windows ─────────────────────────────────────────
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
# ─── IDE ─────────────────────────────────────────────
.idea/
.vscode/
*.swp
*.swo
*~
# ─── 日志 / 临时文件 ──────────────────────────────────
*.log
.DS_Store
.tmp/
*.tmp
.env
.env.local
.env.*.local
# ─── 应用运行产生的缓存 ──────────────────────────────
# Wails macOS app 运行时会在 ~/Library/{Caches,Logs} 下产数据,不入仓
# (路径在 $HOME 下,不会进项目)