Repository navigation
ci(macos): 增加 macOS Intel(x64) DMG 构建 - #75
Open
kongjie0325-art wants to merge 3 commits into
Open
kongjie0325-art wants to merge 3 commits into
kongjie0325-art wants to merge 3 commits into
Conversation
上游只出 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 的资产表。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更
release.yml的macos作业由单 runner 改为 matrix,两条腿各自原生打包(jpackage 不能交叉构建):macos-15piko-macos-arm64-<版本>.dmg(与现状一致)macos-15-intelpiko-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_KEYSTORE_*、SIGNPATH_API_TOKEN等 secret,与改动无关另一条独立取证:workflow_dispatch 只跑 macOS 两腿的最小工作流(fork 内
macos-dmg.yml)同样 x64 成功,产物结构与上面一致。想请维护者定的三件事
continue-on-error: true——代价是该版本不发 Intel 包,而不是拖住整个发布。macos-15-intel的寿命:这是 Actions 目前唯一的 x86_64 镜像,GitHub 公告 2027-08 停供,之后 Intel 腿只能自托管或随上游下线。要不要在文档里同时写上这个日期,我已按此写入desktopApp/AGENTS.md,若措辞不合适我改。test.yml的macos-package目前只在macos-15(arm64)跑真实装卸 + 应用内更新。Intel 腿要不要同样跑一遍(多一条 macOS runner 队列),还是首版先只做构建 + 手工验。其他
mediamp-mpv-runtime-macos-x64已存在于 Maven Central(0.5.3),打包脚本按宿主架构自动取,无需改动。