mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
The previous portable-mode settings were hard to discover and mostly explained through environment variables. Users could not pick a target folder from the desktop UI or clearly understand which config directory would become active after switching modes. This moves the control to a lower-priority storage section, makes the active directory source explicit, supports choosing a portable data folder, and prepares the desktop app for a controlled restart so the new storage location takes effect. Constraint: Directory picking and relaunch require the Tauri desktop runtime Rejected: Keep environment-variable-only setup | users could not discover or validate the target path from the app Confidence: high Scope-risk: moderate Tested: cd desktop && bun run test -- generalSettings settingsStore Tested: bun run check:desktop Tested: bun run check:native Tested: bun run check:coverage Tested: bun run verify Tested: Maintainer manual desktop UI test Not-tested: Windows relaunch path beyond existing native coverage
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