I have successfully signed my app for Mac OS, create a dmg image and convert it to compressed file. Signed and notarized the dmg file. Then I staple the dmg file as recommended by 'Signing a Mac Product For Distribution'.
I tested the dmg is stapled. However, the app inside the dmg is not.
% xcrun stapler validate 'My App.app'
Processing: /Volumes/My App Install/My App.app
My App.app does not have a ticket stapled to it.
The dmg is compressed and read only. I can't staple the app directly. I can also staple the app before compression. But after compression I cannot staple the dmg any more.
My question is:
- I have already stapled my compressed DMG file, do I need to staple my app?
- If that is necessary, do I notarize the app, staple it. Then create the dmg file, sign it, notalize the dmg and staple the dmg?
- If that is not the right workflow, can give me some pointers how to do this?
Thank you in advance.