Skip to content

feat(build): 添加 release.sh 构建脚本 + 修复 CI#1

Merged
Shadow-Azure merged 2 commits into
mainfrom
feat/release-script-and-ci-fix
May 16, 2026
Merged

feat(build): 添加 release.sh 构建脚本 + 修复 CI#1
Shadow-Azure merged 2 commits into
mainfrom
feat/release-script-and-ci-fix

Conversation

@Shadow-Azure

Copy link
Copy Markdown
Owner

Summary

  • 添加 release.sh 本地构建发布脚本,自动编译 CLI、Tauri .app、DMG 并打包到 release/,附带 README.md 使用说明
  • 修复 CI 发布构建验证:pnpm tauri buildcargo tauri build(解决 @tauri-apps/cli 未安装问题)
  • 修正 CI 二进制文件名 sandbox-clisandbox(与 Cargo.toml [[bin]] name 一致)
  • 修复 release.yml 前端依赖安装缺少 working-directory
  • 添加 release/.gitignore

Test plan

  • 本地 ./release.sh 构建成功
  • sandbox --help 正常
  • sandbox serve HTTP /health 返回 {"status":"ok"}
  • sandbox windows 正常列出窗口
  • sandbox processes 正常返回
  • CI 门禁全部通过 (Rust fmt/clippy/test + 前端 lint/typecheck/test + 安全检查 + 发布构建验证)

🤖 Generated with Claude Code

ZN-ice and others added 2 commits May 16, 2026 11:08
添加本地构建发布脚本,自动编译 CLI 二进制、Tauri .app 和 DMG,
打包到 release/ 目录并生成 README.md 使用说明。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 用 cargo tauri build 替代 pnpm tauri build,解决 @tauri-apps/cli 未安装问题
- 修正二进制文件名 sandbox-cli → sandbox(与 Cargo.toml [[bin]] name 一致)
- 修复 release.yml 前端依赖安装缺少 working-directory

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🔒 门禁检查结果

检查项 状态
Rust 格式化 ✅ success
Rust Clippy ✅ success
Rust 测试 ✅ success
前端构建 ✅ success
前端 Lint ✅ success
前端类型检查 ✅ success
前端测试 ✅ success
安全检查 ✅ success

Rust 测试覆盖率

⚠️ 未生成覆盖率报告

✅ 所有检查通过,可以合入

点击 Squash and merge 合并此PR

@Shadow-Azure
Shadow-Azure merged commit dc5f287 into main May 16, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant