mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-06 20:02:49 +08:00
- AI助手新增 API 类型选择器(OpenAI兼容 / Anthropic原生 / Google Gemini) - 实现 Anthropic Messages API 流式调用 + 工具调用(tool_use/tool_result) - 实现 Google Gemini streamGenerateContent + 工具调用(functionCall) - 设置弹窗动态切换 placeholder 和提示文本 - 测试按钮和模型拉取适配三种 API 类型 - 修复 Windows 上 Gateway 状态轮询导致终端反复闪烁(execSync/spawn 加 windowsHide) - 默认密码统一为 123456 + 改密码后自动移除顶部横幅 - 后端 API 增加暴力破解保护、配置缓存、请求体大小限制
1.5 KiB
1.5 KiB
description
| description |
|---|
| 发布新版本(打 tag + 推送,触发跨平台构建) |
发布前检查
- 确认所有改动已提交,工作区干净:
git status
-
确认 CI 全部通过(main 分支绿灯)
-
更新版本号(一条命令自动同步 package.json → tauri.conf.json → Cargo.toml → docs/index.html): // turbo
npm run version:set 1.2.3
-
更新
CHANGELOG.md,在顶部加入本次版本的变更记录 -
提交版本更新:
git add -A
git commit -m "chore: release v1.2.3"
git push origin main
打 tag 并触发发布
git tag v1.2.3
git push origin v1.2.3
推送 tag 后,GitHub Actions 会自动:
- 并行构建 macOS ARM64 / macOS Intel / Linux / Windows 四个平台
- 创建 GitHub Release 并上传安装包
- 所有平台构建完成后统一写入 Release Notes
查看构建进度
前往仓库 Actions 页面,找到 Release 工作流查看实时日志。
手动触发(不打 tag)
在 GitHub Actions 页面手动触发 Release 工作流,输入版本号(如 v1.2.3)。
发布后验证
- Release 页面出现四个平台的安装包
- Release Notes 内容正确(有下载表格 + changelog)
- 下载 Windows EXE 安装验证可用
latest标签指向新 Release
回滚
如果发布有问题,在 GitHub Releases 页面将该 Release 设为 Draft 或删除,然后修复后重新打 tag:
git tag -d v1.2.3
git push origin :refs/tags/v1.2.3
# 修复问题后
git tag v1.2.3
git push origin v1.2.3