macvim-dev / macvim

Vim - the text editor - for macOS
https://macvim.org
Vim License
7.47k stars 680 forks source link

Upgrade create-dmg and build DMG disk image with APFS #1409

Closed ychin closed 1 year ago

ychin commented 1 year ago

Configure dmg builds to use newer APFS/LZFSE formats for non-legacy build

Use newer formats for creating the DMG file for distributing MacVim. APFS has been supported fully since macOS 10.13, and from testing it extracts faster than HFS+.

LZFSE (ULFO format) is newer than zlib/DEFLATE (UDZO format) and also decompresses faster as well from testing. Note that there is a newer compression scheme using LZMA (ULMO format) but it is only supported in 10.15+ which is too high for us as non-legacy builds need to target 10.13+. Also, from testing, the newer LZMA yields smaller files, but takes more time to decompress than LZFSE.

Also, keeping using the old formats (HFS+/zlib) for legacy builds since they need to work on 10.9, which don't support the newer formats.


Also, upgrade create-dmg from the latest source to get the change that allows generating APFS image.