mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-18 13:23:33 +08:00
The desktop test package was able to reuse stale Tauri target output even after the frontend and sidecar were rebuilt, which made UI changes look missing after a build. The local macOS build script now clears that cache by default while retaining an opt-in incremental path. The project selector also no longer repeats the active branch because branch and worktree are now first-class launch controls beside it. Constraint: Local macOS test packages must prioritize freshness over incremental build speed Rejected: Keep branch text in the project chip | duplicated the dedicated branch selector and made the launch row harder to scan Confidence: high Scope-risk: narrow Directive: Keep branch selection behavior in RepositoryLaunchControls; DirectoryPicker should only identify the project Tested: cd desktop && bun run test -- DirectoryPicker.test.tsx Tested: cd desktop && bun run lint Tested: SKIP_INSTALL=1 ./desktop/scripts/build-macos-arm64.sh Tested: Opened built app and confirmed sidecar /health returned ok
Claude Code Haha Desktop
基于 Tauri 2 + React 的桌面客户端。
开发
bun install
bun run tauri dev
构建
# macOS (Apple Silicon)
./scripts/build-macos-arm64.sh
# Windows (x64, MSI only)
.\scripts\build-windows-x64.ps1
构建产物位于 build-artifacts/ 目录,文件名会显式包含平台、架构和包类型。
常见问题
macOS 提示"已损坏,无法打开"
xattr -cr /Applications/Claude\ Code\ Haha.app