Reduce macOS image size

Having a DMG also allows us to use dmg2img to convert into a raw HFS+
image.  That image can be applied to a partition using dd under Linux.
This commit is contained in:
2Shirt 2021-04-15 01:30:56 -06:00
parent 20fe08dbb4
commit f1592b92a6
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -125,4 +125,5 @@ hdiutil detach "${WK_IMAGE_DEV}"
# Convert to compressed read-only image
echo "Converting to read-only image..."
hdiutil resize -sectors min "${OUT_NAME}.sparsebundle"
hdiutil convert -format UDZO -o "${OUT_NAME}.dmg" "${OUT_NAME}.sparsebundle"