Skip to content

fix(ci): 发布 latest-mac.yml,修复 macOS 检查更新 404(issue #39) - #40

Open
hisayya wants to merge 1 commit into
LaoFeng-mouse:mainfrom
hisayya:fix/mac-update-yml
Open

fix(ci): 发布 latest-mac.yml,修复 macOS 检查更新 404(issue #39)#40
hisayya wants to merge 1 commit into
LaoFeng-mouse:mainfrom
hisayya:fix/mac-update-yml

Conversation

@hisayya

@hisayya hisayya commented Aug 15, 2026

Copy link
Copy Markdown

Closes #39(并修复 #21 同源问题)

macOS 检查更新 404 的根因=CI release workflow 漏传 latest-mac.yml + 双架构矩阵同名覆盖。修复:

  • mac job 按架构上传 latest-mac-<arch>.yml
  • publish job 用新增 scripts/merge-mac-update-yml.js 合并为单一 latest-mac.yml
  • 新增测试 tests/macos-update-yml.test.js(5 用例)

验证:新测试 5/5 通过、mac 打包测试 12/12 通过。

The release workflow builds macOS DMGs in two parallel matrix jobs
(electron-builder --mac dmg --arm64/--x64 --publish never), but the
upload-artifact step only carried the DMG itself. electron-builder does
write dist/latest-mac.yml for every mac build; because it was never
uploaded, macOS update checks hit a 404 for
latest-mac.yml in the release assets (issue LaoFeng-mouse#21).

The two matrix jobs also produce a same-named latest-mac.yml with only a
single architecture entry, so simply adding the file would make one arch
overwrite the other. Stage each job's metadata as
latest-mac-<arch>.yml, then merge both into one latest-mac.yml in the
publish job before uploading (mirroring a single multi-arch
electron-builder run).
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.

fix(ci): publish latest-mac.yml so macOS update checks stop 404ing

1 participant