Skip to content

Instantly share code, notes, and snippets.

@thewh1teagle
Created March 31, 2024 19:11
Show Gist options
  • Save thewh1teagle/98cfa5c189e428552f35a8510ce25a27 to your computer and use it in GitHub Desktop.
Save thewh1teagle/98cfa5c189e428552f35a8510ce25a27 to your computer and use it in GitHub Desktop.
Play with dmg file on macos

Sign with ad-hoc identity

codesign -f -s - ./name.app

Check signature

codesign -dv ./name.app

Inspect dmg and create new one

  1. Click on the dmg
  2. Copy the cool icon of the app and paste somewhere
  3. Do your stuff
  4. Create new dmg
hdiutil create -format UDZO -srcfolder stuff.app new.dmg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment