build(dmg): shrink download by trimming icon slot and using ULFO#19
Conversation
The arm64 DMG had grown to 4.4M, dominated by the app-icon bitmaps actool bakes into Assets.car. Those bitmaps are already lzfse-packed, so they barely compress further inside the DMG — the only lever left on the icon side is dropping a redundant slot, so the 512x512@2x (1024px) rendition and its source PNG are removed. For everything else, switch hdiutil from the historical UDZO (zlib) to ULFO (LZFSE), which squeezes the Mach-O binary and the embedded Sparkle framework harder. LZFSE is Apple's own codec, decoded in userspace by the host's DiskImages helper, so mountability tracks the host macOS version (floor 14.0), never the contained CPU arch. Together this brings the DMG down to 2.4M. Signed-off-by: Kevin Cui <bh@bugs.cc>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
Summary by CodeRabbit
WalkthroughTwo unrelated asset/packaging changes are included. In Possibly related PRs
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches✨ Simplify code
Comment |
The arm64 DMG had grown to 4.4M, dominated by the app-icon bitmaps actool bakes into Assets.car. Those bitmaps are already lzfse-packed, so they barely compress further inside the DMG — the only lever left on the icon side is dropping a redundant slot, so the 512x512@2x (1024px) rendition and its source PNG are removed.
For everything else, switch hdiutil from the historical UDZO (zlib) to ULFO (LZFSE), which squeezes the Mach-O binary and the embedded Sparkle framework harder. LZFSE is Apple's own codec, decoded in userspace by the host's DiskImages helper, so mountability tracks the host macOS version (floor 14.0), never the contained CPU arch. Together this brings the DMG down to 2.4M.