amaxwell / tlutility

TeX Live Utility, a Mac OS GUI for the TeX Live Manager
http://amaxwell.github.io/tlutility/
BSD 3-Clause "New" or "Revised" License
307 stars 17 forks source link

Generate DMG with HFS+ instead of APFS #111

Closed EricFromCanada closed 3 years ago

EricFromCanada commented 3 years ago

Since modern versions of macOS's hdiutil default to creating APFS-formatted disk images, I'd suggest that this line be updated to:

cmd = ["/usr/bin/hdiutil", "create", "-fs", "HFS+", "-srcfolder", BUILT_APP, temp_dmg_path]

so that an HFS+ image is created instead for backwards compatibility.

amaxwell commented 3 years ago

Thanks, that's not good at all, and I don't see it documented in the man page. APFS didn't even exist when I wrote that script, so it's nice to see Apple's typical attention to backwards compatibility at work.

amaxwell commented 3 years ago

Well, I can't actually run this on Big Sur, as it fails.

$ hdiutil create -fs HFS+ -srcfolder /tmp/TLU-amaxwell/Release/TeX\ Live\ Utility.app /tmp/tlu.dmg
.....could not access /Volumes/TeX Live Utility/TeX Live Utility.app/Contents/MacOS/.BC.T_HqnKok - Operation not permitted

hdiutil: create failed - Operation not permitted
amaxwell commented 3 years ago

Fixed in latest release by switching to zip file. Thanks for the report.