Closed zorgiepoo closed 1 year ago
I just realized that we could simplify this a lot. The oldest macOS version Xcode can target now is macOS 10.13, so it makes sense for this package to also target that. That means we can remove both of the checks.
I can do that if you want but.. we may want to keep the checks for a few reasons so I'd personally keep it:
IMO, create-dmg should at least warn the user (or fail) if they're trying to build a dmg now with an app with a deployment target < 10.13. Xcode issues a build warning if you do this for comparison. (But also: if you can warn, then why not go through the small amount of extra effort to fallback on older formats?)
The other potential argument is: Xcode 14 doesn't support building binaries < 10.13, but hdiutil still supports building HFS+ and zlib disk images.. as a tool that creates disk images, hdiutil or disk utility is the more appropriate comparison.
I removed the minimum system version code like you asked however. Feel free to merge if that's what you want, or let me know if you'd like more refinement here.
Thanks :)
As part of #79, create APFS disk images for macOS 10.13+ apps.
This also fixes a bug where create-dmg may previously prefer to use
UDZO
if the app's minimum system requirement was >= 11.0 because it didn't compare the major version component.This requires nodeapp-dmg 0.6.6 which I added support for APFS disk images there.