sudo chmod 755 ./macOS_outside_App_Store_app_signing_-_ReactionTime.sh

==============================
==============================
==============================
==============================


cd /Users/username/Desktop/username/ReactionTime_Lazarus/ReactionTime_macOS64_signing


./macOS_outside_App_Store_app_signing_-_ReactionTime.sh


codesign -s "Developer ID Application: Name Surname (1234567890)" --timestamp /Users/username/Desktop/installers/Reaction_Time_Measurement.dmg


xcrun notarytool submit --apple-id "email" --team-id "1234567890" --password "password" /Users/username/Desktop/installers/Reaction_Time_Measurement.dmg

==============================
==============================
==============================
==============================


xcrun notarytool history --apple-id "email" --team-id "1234567890" --password "password"



==============================
==============================
==============================
==============================
After step 5 receives the "Package Approved" status message, you should also attach the ticket to the disk image file using the stapler tool, so that future distributions include the ticket. This ensures that Gatekeeper can find the ticket even when a network connection is not available.
To staple the ticket to the disk image file, open a Terminal and run the following command:


xcrun stapler staple /Users/username/Desktop/installers/Reaction_Time_Measurement.dmg


If the command completes successfully, the output should be similar to:

Processing: /Path/to/MyApp.dmg
Processing: /Path/to/MyApp.dmg
The staple and validate action worked!


==============================
==============================
==============================
==============================

To verify the notarization of the disk image, open a Terminal and run the following command:

spctl -a -vv -t install /Users/username/Desktop/installers/Reaction_Time_Measurement.dmg


A successful verification of the notarization process should produce output similar to the following:

MyApp.dmg: accepted
source=Notarized Developer ID
origin=Developer ID Application: <Developer Name> (<TEAM_ID>)

==============================
==============================
==============================
==============================


To verify the notarization of the application, install the application, open a Terminal and run the following command:

spctl -a -vv /Applications/MyApp.app


A successful verification of the notarization process should produce output similar to the following:

/Applications/MyApp.app: accepted
source=Notarized Developer ID
origin=Developer ID Application: <Developer Name> (<TEAM_ID>)


Important: test the application by putting it in the Applications directory. It's treated differently by the Gatekeeper when in the "installed" location.

Alternatively, the Apple-recommended way to verify the notarization of an application is to open a Terminal and run the following command:

xcrun stapler validate MyApp.app

A successful verification of the notarization process should produce output similar to the following:

Processing: MyApp.app
The validate action worked!


==============================
==============================
==============================
==============================





