Skip to content

ci(macos): 增加 macOS Intel(x64) DMG 构建 - #75

Open
kongjie0325-art wants to merge 3 commits into
NihilDigit:mainfrom
kongjie0325-art:feat/macos-intel-dmg
Open

kongjie0325-art wants to merge 3 commits into
NihilDigit:mainfrom
kongjie0325-art:feat/macos-intel-dmg

Conversation

@kongjie0325-art

Copy link
Copy Markdown

变更

release.yml 的 macos 作业由单 runner 改为 matrix,两条腿各自原生打包(jpackage 不能交叉构建):

腿 runner 产物
arm64 macos-15 piko-macos-arm64-<版本>.dmg(与现状一致)
x64 macos-15-intel piko-macos-x64-<版本>.dmg(新增)

应用代码零改动:DesktopAppUpdater 已经用 ARCH = if (System.getProperty("os.arch") == "aarch64") "arm64" else "x64" 拼 piko-macos-$ARCH-<版本>.dmg,所以 Intel 包一旦按这个名字发布,Intel Mac 的自动检查与应用内整包更新立即生效;在此之前 Intel 客户端只能退回下载页。

同步更新:.github/release-notes.md 下载表加 Intel 行、desktopApp/AGENTS.md(原「仅 Apple Silicon arm64」→ 两架构并写明 runner 与停供时间)、docs/development/upgrade-paths.md 的升级路径与资产表各一行。release 汇总 job 无需改动——它按 piko-* 拉全部产物并统一算 SHA256SUMS.txt 与 release.json。

验证

在 fork 上对改后的 release.yml 本体跑了一次 workflow_dispatch 演练(dry-run,不建 release):
https://github.com/kongjie0325-art/piko/actions/runs/47136123492

  • macos (macos-15-intel, x64) → success,产物 piko-macos-x64-9.9.9.dmg,118,509,259 字节,Type = Dmg + HFS;解开后 Piko.app/Contents/MacOS/Piko = Mach-O 64-bit executable x86_64,Contents/app/libskiko-macos-x64.dylib = x86_64,Contents/runtime 为 Zulu 25.0.5.1 (x64),_CodeSignature 存在(ad-hoc)
  • macos (macos-15, arm64) → cancelled,annotation 原文:The job was not acquired by Runner of type hosted even after multiple attempts / capacity constraints。GitHub 的 macOS arm64 runner 排队问题,与本次改动无关(同一 fork 里单独跑 arm64 也常被取消)
  • 同一次演练中 android / windows / 部分 test job 失败,原因是 fork 缺 ANDROID_KEYSTORE_*、SIGNPATH_API_TOKEN 等 secret,与改动无关

另一条独立取证:workflow_dispatch 只跑 macOS 两腿的最小工作流(fork 内 macos-dmg.yml)同样 x64 成功,产物结构与上面一致。

想请维护者定的三件事

  1. Intel 腿是否作为发布硬门禁:现按 arm64 同等待遇(任一腿失败即阻断 release)。若觉得新腿不稳定,可以给它 continue-on-error: true——代价是该版本不发 Intel 包,而不是拖住整个发布。
  2. macos-15-intel 的寿命:这是 Actions 目前唯一的 x86_64 镜像,GitHub 公告 2027-08 停供,之后 Intel 腿只能自托管或随上游下线。要不要在文档里同时写上这个日期,我已按此写入 desktopApp/AGENTS.md,若措辞不合适我改。
  3. 是否给 Intel 加打包冒烟腿:test.yml 的 macos-package 目前只在 macos-15(arm64)跑真实装卸 + 应用内更新。Intel 腿要不要同样跑一遍(多一条 macOS runner 队列),还是首版先只做构建 + 手工验。

其他

  • 我是外部贡献者,会在 PR 下按 CLA 流程回复签署语句。
  • 没有改任何产品代码、依赖或版本号;mediamp-mpv-runtime-macos-x64 已存在于 Maven Central(0.5.3),打包脚本按宿主架构自动取,无需改动。

上游只出 arm64:macos 作业固定在 macos-15(Apple Silicon)。改为 matrix,
arm64 走 macos-15、x86_64 走 macos-15-intel(Actions 目前唯一的 Intel 镜像,
2027-08 停供),产物按 piko-macos-<arch>-<版本>.dmg 命名。

应用内更新器已按 os.arch 取同名包(DesktopAppUpdater.ARCH),因此客户端
无需改动:Intel 包发布后,Intel Mac 上的自动检查即可命中,之前取不到。

同步更新 release-notes 下载表、desktopApp/AGENTS.md 的架构表述与
upgrade-paths 的资产表。
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