Skip to content

[6214] mac和win CD流水线自动复制stable独立pkg和exe安装包供发布 - #4719

Merged
PinkMagicFly merged 2 commits into
mainfrom
pigmagicfly/6214/extract-installer-in-cd
Oct 14, 2026
Merged

PinkMagicFly merged 2 commits into
mainfrom
pigmagicfly/6214/extract-installer-in-cd

Conversation

@PinkMagicFly

@PinkMagicFly PinkMagicFly commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

任务

6214:在 mac 和 win 的 CD 文件里增加步骤,将 stable 的独立 exe 和 pkg 安装包复制到外层供发布。任务文档见 dev-agent PR:https://github.com/LiiiLabs/dev-agent/pull/124

What

  1. macOS arm64 CD(cd_on_macos_arm64.yml):

    • 在 Create release archive 步骤之后增加 Copy standalone installer for release 步骤;
    • 当 build/velopack_release_stable/ 存在时,直接将已完成签名公证的安装包(*-Setup.pkg)复制到 build/ 目录并重命名为 build/MoganSTEM-v${VERSION}-arm.pkg;
    • Upload Artifact 与 Release 步骤的发布资产列表追加 build/MoganSTEM-*.pkg。
  2. Windows x64 CD(cd_research_on_windows.yml):

    • 在 Create release archive 步骤之后增加 Copy standalone installer for release 步骤(使用 pwsh);
    • 当 build/velopack_release_stable/ 存在时,直接将打包产物 *Setup.exe 复制到 build/ 目录并重命名为 build/MoganSTEM-v$ver-64bit-installer.exe;
    • Upload Artifact 与 Release 步骤的发布资产列表追加 build/MoganSTEM-*.exe。

Why

在当前 3.7 Release 中,除全量/增量 Velopack 发布包 zip 之外,官网下载直链与用户单文件安装直接依赖位于 Release 外层的独立安装包(MoganSTEM-v2026.3.7-arm.pkg 与 MoganSTEM-v2026.3.7-64bit-installer.exe)。此前 CD 流程仅打包并上传了 zip 压缩包,外层独立安装包需要发版人员手动从 stable 产物中复制改名并上传到 GitHub Release。

采用直接从 build/velopack_release_stable/ 复制到 build/ 外层的方式,避免了将文件压入 zip 后再解压的重复 I/O 与 CPU 开销,脚本极简稳定(仅需单行 cp / Copy-Item),实现全自动发版。

验证

  • Python yaml.safe_load 校验两份工作流文件均解析成功,无语法错误
  • 复制目标文件名严格匹配 3.7 Release 命名规范:MoganSTEM-v<ver>-arm.pkg 与 MoganSTEM-v<ver>-64bit-installer.exe

@PinkMagicFly PinkMagicFly changed the title [6214] mac和win CD流水线自动解压stable安装包为独立pkg和exe [6214] mac和win CD流水线自动复制stable独立pkg和exe安装包供发布 Oct 14, 2026

@MoonL79 MoonL79 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PinkMagicFly
PinkMagicFly merged commit ceafb99 into main Oct 14, 2026
@PinkMagicFly
PinkMagicFly deleted the pigmagicfly/6214/extract-installer-in-cd branch October 14, 2026 02:18
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.

2 participants