fix(ci): 发布 latest-mac.yml,修复 macOS 检查更新 404(issue #39) - #40
Open
hisayya wants to merge 1 commit into
Open
Conversation
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).
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.
Closes #39(并修复 #21 同源问题)
macOS 检查更新 404 的根因=CI release workflow 漏传
latest-mac.yml+ 双架构矩阵同名覆盖。修复:latest-mac-<arch>.ymlscripts/merge-mac-update-yml.js合并为单一latest-mac.ymltests/macos-update-yml.test.js(5 用例)验证:新测试 5/5 通过、mac 打包测试 12/12 通过。