Add CLAUDE.md with release checklist and build notes. Bump version for new release with ABI fix, Windows path fix, x64 macOS support, and Extensions scroll fix. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
938 B
938 B
CLAUDE.md
Project Overview
CodePilot — Claude Code 的原生桌面 GUI 客户端,基于 Electron + Next.js。
Release Checklist
发版前必须更新版本号:
package.json中的"version"字段package-lock.json中的对应版本(运行npm install会自动同步)- 构建命令:
npm run electron:pack:mac(macOS)/npm run electron:pack:win(Windows) - 上传产物到 GitHub Release 并编写 release notes
Build Notes
- macOS 构建产出 DMG(arm64 + x64),Windows 产出 NSIS 安装包或 zip
scripts/after-pack.js会在打包时显式重编译 better-sqlite3 为 Electron ABI,确保原生模块兼容- 构建前清理
rm -rf release/ .next/可避免旧产物污染 - 构建 Windows 包后需要
npm rebuild better-sqlite3恢复本地开发环境 - macOS 交叉编译 Windows 需要 Wine(Apple Silicon 上可能不可用),可用 zip 替代 NSIS