-
Notifications
You must be signed in to change notification settings - Fork 0
Release Process
binbin1213 edited this page Oct 29, 2025
·
1 revision
本项目已配置 GitHub Actions,可以自动构建 macOS、Windows 和 Linux 版本的应用。
- 推送到 main 分支:自动构建并上传构建产物
- 创建 Pull Request:自动构建用于测试
- 创建 Tag:自动构建并创建 GitHub Release
- 手动触发:在 GitHub Actions 页面手动运行
# 1. 确保代码已提交
git add .
git commit -m "准备发布 v1.0.0"
# 2. 创建并推送 tag
git tag v1.0.0
git push origin v1.0.0
# 3. GitHub Actions 会自动:
# - 构建 macOS、Windows、Linux 版本
# - 创建 GitHub Release
# - 上传所有安装包- 访问:https://github.com/binbin1213/VideoTool/releases/new
- 输入 Tag 版本:如
v1.0.0 - 填写 Release 标题和说明
- 点击 "Publish release"
- GitHub Actions 会自动构建并上传文件
-
VideoTool-1.0.0-universal.dmg- Universal 安装包(Intel + Apple Silicon) -
VideoTool-1.0.0-arm64-mac.zip- Apple Silicon 版本 -
VideoTool-1.0.0-x64-mac.zip- Intel 版本
-
VideoTool Setup 1.0.0.exe- NSIS 安装程序 -
VideoTool 1.0.0.exe- 便携版
-
VideoTool-1.0.0.AppImage- AppImage 格式 -
videotool_1.0.0_amd64.deb- Debian/Ubuntu -
videotool-1.0.0.x86_64.rpm- RedHat/Fedora/CentOS
GitHub Actions 使用 GITHUB_TOKEN 自动认证,无需额外配置。
如果需要对应用进行代码签名:
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
CSC_LINK: ${{ secrets.MAC_CERT }}
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERT_PASSWORD }}env:
WIN_CSC_LINK: ${{ secrets.WIN_CERT }}
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CERT_PASSWORD }}在 GitHub 仓库设置中添加这些 Secrets: Settings → Secrets and variables → Actions → New repository secret
- 访问:https://github.com/binbin1213/VideoTool/actions
- 查看最近的工作流运行记录
- 点击具体的运行查看详细日志
- 下载构建产物测试
建议使用语义化版本号:v主版本.次版本.修订号
-
v1.0.0- 首次正式发布 -
v1.0.1- Bug 修复 -
v1.1.0- 新功能 -
v2.0.0- 重大更新
- 更新
package.json中的版本号 - 更新
PROJECT_STATUS.md完成度 - 测试所有功能是否正常
- 更新 CHANGELOG(如果有)
- 创建 Git Tag 并推送
- 等待 GitHub Actions 构建完成
- 测试下载的安装包
- 编写 Release Notes
- 查看 Actions 日志找到错误信息
- 检查依赖是否正确安装
- 确认 Node.js 版本兼容性
- 确认工作流已成功完成
- 检查
release/目录路径配置 - 查看 electron-builder 输出日志
- 确认 Tag 格式正确(以
v开头) - 检查
GITHUB_TOKEN权限 - 确认仓库设置允许创建 Release