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