Repository navigation
Conversation
- Re-enable the macos-latest matrix entry in the release workflow - Give macOS its own electron-builder cache/tmp directories - Verify dmg/zip/app artifacts exist before uploading them - Fix mac.extendInfo shape so usage descriptions land in Info.plist
macOS 26.2+ Finder 不再渲染带 pBBk bookmark 的 DMG 背景图 (dmgbuild#273 / electron-builder#9072)。用 pnpm patch 去掉 dmg-builder 内置 dmgbuild 中 pBBk 的写入,恢复背景显示。
- 背景替换为 540x380 浅色版本,图标文字在浅色背景上可读 - 图标 y 坐标改为 190,与背景箭头中心(约 189.5)对齐并纵向居中 - 窗口高度设为 412(内容 380 + 标题栏 32),让 DMG 内容区与背景图尺寸一致
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.
背景
Build and Release工作流中的 macOS 构建矩阵此前被注释掉(commit cf59586「暂时禁用macos发布」),导致 release 只自动产出 Windows / Linux 安装包,macOS 一直没有产物。packages/desktop/electron-builder.yml中的mac.extendInfo被写成了数组,electron-builder 合并后权限说明会变成Info.plist里的0/1等无效键,相机/麦克风等权限申请不可用;改动内容
1. 恢复 macOS 自动构建(
.github/workflows/release.yml)macos-latest矩阵项,使用desktop:build:mac;Verify macOS artifacts步骤:校验*.dmg、*.zip、*.app存在且非空,并对 DMG 执行hdiutil verify,避免「作业成功但没有产物」。2. 修复
mac.extendInfo结构(packages/desktop/electron-builder.yml)NSCameraUsageDescription、NSMicrophoneUsageDescription、CFBundleURLTypes等条目现在能正确写入Info.plist。3. 修复 macOS 26.2+ 上 DMG 背景图不显示(新增
patches/dmg-builder.patch).DS_Store中带pBBkbookmark 的 DMG 背景图;dmg-builder内置 dmgbuild 中pBBk的写入,恢复背景显示(上游 dmgbuild 1.6.7 已移除该字段);package.json增加pnpm.patchedDependencies,pnpm-lock.yaml同步更新。4. DMG 安装窗口视觉调整(
packages/desktop/electron-builder.yml+ 背景图)y坐标由 220 调整为 190,与背景箭头中心(约 189.5)对齐并纵向居中;验证
.DS_Store无pBBk、backgroundType=2且 alias 正常;(130,190)、(410,190),WindowBounds = {{400,514},{540,412}};hdiutil verify通过。Build and Release:ubuntu / windows / macos 均成功,macOS 作业产出 dmg + zip 并通过新增的产物校验;注意事项
pBBk补丁针对dmg-builder@26.0.12,后续升级到 electron-builder 26.18.0+ 后可移除该 patch;提交列表
061355afix(ci): enable macOS desktop release build43a0aaffix(dmg): 修复 macOS 26 上 DMG 背景图不显示623c35afeat(dmg): 使用浅色背景图并居中 DMG 图标a6ef561chore(dmg): 修正窗口高度配置注释