mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
Older macOS versions can surface the bundled app icon without applying the modern rounded-mask treatment, which exposed the legacy AI-generated white background around the Claude Code Haha mark. This replaces the icon source with a transparent-background vector mark and regenerates the bundled macOS and cross-platform icon assets from that canonical source so packaging stays consistent. Constraint: Older macOS releases may display bundled icons without automatic corner masking Constraint: The Tauri bundle references pre-rendered icon assets, so the source and generated files must stay aligned Rejected: Patch only icon.icns | would leave PNG and ICO assets inconsistent across platforms Rejected: Keep the AI icon and post-process the JPEG background | brittle extraction and no canonical source of truth Confidence: high Scope-risk: narrow Reversibility: clean Directive: If the brand icon changes again, regenerate every file under desktop/src-tauri/icons from desktop/src-tauri/app-icon.svg in the same change Tested: desktop bun run lint; desktop bun run test; extracted regenerated icon.icns to verify alpha transparency Not-tested: Full packaged app launch in macOS Dock after rebuilding the desktop bundle
Claude Code Haha Desktop
基于 Tauri 2 + React 的桌面客户端。
开发
bun install
bun run tauri dev
构建
# macOS (Apple Silicon)
./scripts/build-macos-arm64.sh
# Windows (x64)
.\scripts\build-windows-x64.ps1
构建产物位于 build-artifacts/ 目录。
常见问题
macOS 提示"已损坏,无法打开"
xattr -cr /Applications/Claude\ Code\ Haha.app