I currently use hdiutil
to create my DMGs.
The command I use is hdiutil create -size xxxg myImage.dmg -fs HFS+.
I'm always left fidgeting around with the size until I get it close enough.
Is there a better method that either shrinks the DMG to size or creates it size?