Sign with ad-hoc identity codesign -f -s - ./name.app Check signature codesign -dv ./name.app Inspect dmg and create new one Click on the dmg Copy the cool icon of the app and paste somewhere Do your stuff Create new dmg hdiutil create -format UDZO -srcfolder stuff.app new.dmg