Skip to content

Commit 0067c2d

Browse files
7418claude
andcommitted
chore: CI reads RELEASE_NOTES.md for release body + add v0.40.0 notes
- build.yml: release step now uses RELEASE_NOTES.md from repo if present, falls back to auto-generated minimal template - Removed old hardcoded release notes template and commit-log changelog - Added RELEASE_NOTES.md with user-facing v0.40.0 release notes - Updated CLAUDE.md release flow to include RELEASE_NOTES.md step Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent fb44a9f commit 0067c2d

3 files changed

Lines changed: 72 additions & 35 deletions

File tree

.github/workflows/build.yml

Lines changed: 21 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -393,49 +393,36 @@ jobs:
393393
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
394394
run: |
395395
VERSION="${{ steps.meta.outputs.version }}"
396-
PREV_TAG="${{ steps.meta.outputs.prev_tag }}"
397-
398-
cat > release-notes.md << 'NOTES_EOF'
399-
## Downloads
400-
401-
**Windows**
402-
- **CodePilot Setup ${{ steps.meta.outputs.version }}.exe** — Windows installer (x64 + arm64)
403-
404-
**macOS**
405-
- **CodePilot-${{ steps.meta.outputs.version }}-arm64.dmg** — macOS Apple Silicon (M1/M2/M3/M4)
406-
- **CodePilot-${{ steps.meta.outputs.version }}-x64.dmg** — macOS Intel
407396
408-
**Linux**
409-
- **AppImage / deb / rpm** — x64 and arm64
397+
# Use RELEASE_NOTES.md from repo if present; otherwise generate a minimal fallback
398+
if [ -f "RELEASE_NOTES.md" ]; then
399+
echo "Using RELEASE_NOTES.md from repository"
400+
cp RELEASE_NOTES.md release-notes.md
401+
else
402+
echo "RELEASE_NOTES.md not found, generating default notes"
403+
cat > release-notes.md << NOTES_EOF
404+
## CodePilot v${VERSION}
410405
411-
## Installation
406+
## 下载地址
412407
413-
**Windows**: Download the exe installer, double-click to install.
408+
### macOS
409+
- [Apple Silicon (M1/M2/M3/M4)](https://github.com/op7418/CodePilot/releases/download/v${VERSION}/CodePilot-${VERSION}-arm64.dmg)
410+
- [Intel](https://github.com/op7418/CodePilot/releases/download/v${VERSION}/CodePilot-${VERSION}-x64.dmg)
414411
415-
**macOS**:
416-
1. Download the DMG for your chip architecture
417-
2. Open the DMG, drag CodePilot into Applications
418-
3. If you see a security prompt on first launch, go to **System Settings > Privacy & Security** and click "Open Anyway"
419-
4. Configure your Anthropic API Key in Settings
412+
### Windows
413+
- [Windows 安装包](https://github.com/op7418/CodePilot/releases/download/v${VERSION}/CodePilot-Setup-${VERSION}.exe)
420414
421-
**Linux**: Run the AppImage directly, or install via deb/rpm package.
415+
## 安装说明
422416
423-
## Requirements
417+
**macOS**: 下载 DMG → 拖入 Applications → 首次启动如遇安全提示,在系统设置 > 隐私与安全中点击"仍要打开"
418+
**Windows**: 下载 exe 安装包 → 双击安装
424419
425-
- Windows 10+ / macOS 12.0+ / Linux (glibc 2.31+)
426-
- Anthropic API Key or `ANTHROPIC_API_KEY` environment variable
427-
- Claude Code CLI recommended for code features
420+
## 系统要求
428421
429-
## Changelog
422+
- macOS 12.0+ / Windows 10+ / Linux (glibc 2.31+)
423+
- 需要配置 API 服务商(Anthropic / OpenRouter 等)
424+
- 推荐安装 Claude Code CLI 以获得完整功能
430425
NOTES_EOF
431-
432-
if [ -n "$PREV_TAG" ]; then
433-
echo "" >> release-notes.md
434-
echo "| Commit | Description |" >> release-notes.md
435-
echo "|--------|-------------|" >> release-notes.md
436-
cat >> release-notes.md << 'CHANGELOG_INLINE_EOF'
437-
${{ steps.changelog.outputs.changelog }}
438-
CHANGELOG_INLINE_EOF
439426
fi
440427
441428
# Merge per-platform checksums into a single file

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ CodePilot — Claude Code 的桌面 GUI 客户端,基于 Electron + Next.js。
8181

8282
## 发版
8383

84-
**发版流程:** 更新 package.json version → `npm install` 同步 lock → 提交推送 → `git tag v{版本号} && git push origin v{版本号}` → CI 自动构建发布。不要手动创建 GitHub Release。
84+
**发版流程:** 更新 `RELEASE_NOTES.md` → 更新 package.json version → `npm install` 同步 lock → 提交推送 → `git tag v{版本号} && git push origin v{版本号}` → CI 自动构建发布并使用 `RELEASE_NOTES.md` 作为 Release 正文。不要手动创建 GitHub Release(CI 会自动创建并上传构建产物)
8585

8686
**发版纪律:** 禁止自动发版。`git push` + `git tag` 必须等用户明确指示后才执行。commit 可以正常进行。
8787

RELEASE_NOTES.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
## CodePilot v0.40.0
2+
3+
> 本次大版本聚焦两个方向:**素材库全面升级**和全新的 **CLI 工具 AI 管理**。素材库支持直接在聊天中生成和导入媒体文件,CLI 工具可以通过对话完成安装、注册、更新的全流程。
4+
5+
### 新增功能
6+
7+
- **聊天内生成图片并自动保存**:在对话中直接生成图片,自动保存到素材库并内联展示,无需手动导入
8+
- **聊天内导入媒体文件**:通过对话将本地图片/视频/音频文件导入素材库,支持自动提取元数据(提示词、模型、分辨率)
9+
- **CLI 工具 AI 管理**:告诉 AI "帮我安装 ffmpeg" 或 "检查工具更新",它会自动完成安装、注册、生成简介、检测更新的全流程
10+
- **CLI 工具版本更新检测**:AI 可以检查哪些已安装的 CLI 工具有可用更新,并帮你一键升级
11+
- **CLI 工具结构化简介**:AI 生成的工具简介升级为完整格式(工具介绍、适用场景、快速上手、示例提示词),与官方推荐工具一致
12+
- **新增 3 个推荐 CLI 工具**:ElevenLabs CLI(AI 语音代理管理)、Stripe CLI(支付集成)、网易云音乐 CLI(AI 音乐控制)
13+
- **官网更新公告区域**:首页新增最近 5 条版本更新卡片,可直接查看每个版本的更新内容
14+
15+
### 修复问题
16+
17+
- 修复 AI 生成的 CLI 工具简介关闭后丢失的问题(现在持久化到数据库)
18+
- 修复切换主题后重启应用会恢复默认主题的问题
19+
- 修复暗色模式下 Bash 代码块文字颜色与背景对比度不足、几乎看不清的问题
20+
- 修复未安装的工具详情弹窗错误显示"尝试使用"按钮的问题
21+
- 修复官网 FAQ 中错误描述为仅支持 macOS 的问题(实际已支持全平台)
22+
23+
### 优化改进
24+
25+
- CLI 工具管理页面的"添加工具"改为对话式体验,跳转聊天由 AI 协助完成
26+
- 已安装工具详情弹窗新增"尝试使用"按钮,一键开启新对话
27+
- 额外检测到的系统工具和用户自定义工具分别显示"系统检测"/"自定义"标签
28+
- 自定义工具卡片支持点击查看详情
29+
- 终端/Bash 代码块使用主题感知 CSS 变量,适配所有主题的明暗模式
30+
- 官网下载按钮改为直接链接到 GitHub Releases 最新版本
31+
32+
## 下载地址
33+
34+
### macOS
35+
- [Apple Silicon (M1/M2/M3/M4)](https://github.com/op7418/CodePilot/releases/download/v0.40.0/CodePilot-0.40.0-arm64.dmg)
36+
- [Intel](https://github.com/op7418/CodePilot/releases/download/v0.40.0/CodePilot-0.40.0-x64.dmg)
37+
38+
### Windows
39+
- [Windows 安装包](https://github.com/op7418/CodePilot/releases/download/v0.40.0/CodePilot-Setup-0.40.0.exe)
40+
41+
## 安装说明
42+
43+
**macOS**: 下载 DMG → 拖入 Applications → 首次启动如遇安全提示,在系统设置 > 隐私与安全中点击"仍要打开"
44+
**Windows**: 下载 exe 安装包 → 双击安装
45+
46+
## 系统要求
47+
48+
- macOS 12.0+ / Windows 10+ / Linux (glibc 2.31+)
49+
- 需要配置 API 服务商(Anthropic / OpenRouter 等)
50+
- 推荐安装 Claude Code CLI 以获得完整功能

0 commit comments

Comments
 (0)