mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-08-01 16:43:37 +08:00
setInteractiveRegions only recorded visibleDragRegion inside the darwin branch, so on Windows and Linux it stayed null and dragging fell back to clamping against the whole PET_WINDOW_WIDTH x PET_WINDOW_HEIGHT window. That window is mostly transparent padding around a mascot anchored bottom center, so the mascot stopped short of every display edge by the width of that padding and could not be dragged into a corner. Record the region on all platforms; the reposition-on-restore step stays darwin-only. Normalizing the region also clamped against the nominal constants. Renderer regions are measured against the live viewport, so clamp against the real content box instead -- the same petWindowContentExtent the shape clamp already uses -- and let the shape clamp reuse that one normalizer.
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