The image will not be mounted unless the user indicates agreement with the license. If either license.txt, license.rtf, or sla.r ( raw SLAResources file) are present in the same directory as the app, it will be added as a software agreement when opening the image.
Important: Don't forget to notarize your DMG. It will try to code sign the DMG, but the DMG is still created and fine even if the code signing fails, for example if you don't have a developer certificate. The resulting image has the filename App Name 0.0.0.dmg, for example Lungo 1.0.0.dmg. The DMG detects the minimum runtime of the app, and uses ULFO (macOS 10.11 or later) or UDZO as appropriate. dmg-title= Manually set DMG title (must be <=27 characters) identity= Manually set code signing identity (automatic by default) overwrite Overwrite existing DMG with the same name