Notarization (How do we "staple" ticket in Custom Workflow?)

PACKAGE APPROVED


I uploaded an app to be notarized in a dmg file named "test_notarize_01.dmg".


The dmg file contains a single item: "test_notarize_01.app".


"

xcrun altool --notarization-info
" reports Status Message: Package Approved".


The LogFileURL returns JSON with a property named "ticketContents".



HOW DO I STAPLE?


The Apple documentation "Staple the Ticket to Your Distribution" says:


To attach a ticket to your app, use the stapler tool:


$ xcrun stapler staple "Overnight TextEditor.app"



Which of the following do I call:


(A) use the dmg that was notarized:

$ xcrun stapler staple "test_notarize_01.dmg"


(B) use the app prior to being placed in dmg:

$ xcrun stapler staple "test_notarize_01.app"


(C) Or do something else??


Please note this is a custom workflow. The app is built by 4D, not Xcode.

Notarization (How do we "staple" ticket in Custom Workflow?)
 
 
Q