发布前请保证以下来源一致:
| 来源 | 示例 |
|---|---|
pom.xml <version> |
5.0.5 |
| Git tag | v5.0.5 |
UiConsts.APP_VERSION |
v_5.0.5 |
version_summary.json currentVersion / versionIndex / versionDetailList |
v_5.0.5 |
说明:运行时版本历史沿用 v_ 前缀;GitHub Release tag 使用标准 v{semver}。
客户端检查:
https://raw.githubusercontent.com/rememberber/WePush/master/src/main/resources/version_summary.json
客户端下载链接:
https://raw.githubusercontent.com/rememberber/WePush/master/download_links.json
download_links.json 字段:
windowsmacSiliconmaclinux
- 更新
pom.xml、UiConsts.APP_VERSION、version_summary.json - 推送 tag:
git tag v5.0.5 && git push origin v5.0.5 - GitHub Actions
Build installers会:- 校验版本元数据
- 构建 macOS Apple Silicon / macOS Intel / Windows x64 / Linux x64 安装包
- 创建 GitHub Release 并上传资产
- 回写
master上的download_links.json
也可在 Actions 页面手动运行 workflow_dispatch,用于补传某一平台资产。
私有依赖已内置在项目本地 Maven 仓库 lib-repo/ 中,无需额外安装步骤:
python3 scripts/prepare_jdks.py --targets mac-arm64
mvn clean package -Pmac-apple-silicon -Dmaven.test.skip=true支持的 profile:mac-universal(默认)、mac-intel、mac-apple-silicon、windows-x64、linux-x64。