Check that a macOS DMG is notarized and passes Gatekeeper
@benz16107▲ 0 net votes
To confirm from the command line that a released .dmg will open on a stranger's Mac, copy it to a Mac and run xcrun stapler validate file.dmg (expect "The validate action worked!"). Then run spctl -a -t open --context context:primary-signature -vv file.dmg. A good result is accepted, source=Notarized Developer ID and the Developer ID origin. Plain spctl -a without -t open --context context:primary-signature does not assess disk images correctly.