sudo chmod 755 ./macOS_outside_App_Store_app_signing_-_LithuanianCharSetConverter.sh

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


cd /Users/username/Desktop/username/Users/mantas/Desktop/mantas/LithuanianCharSetConverter_Lazarus/Lithuanian_CharSet_Converter_macOS64_signing



./macOS_outside_App_Store_app_signing_-_LithuanianCharSetConverter.sh


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


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


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


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



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

Successfully received submission history.
  history
    --------------------------------------------------
    createdDate: 2024-03-23T00:36:53.950Z
    id: fdd0f15a-5be7-49bf-9f4d-be4fc8b6956f
    name: Lithuanian_CharSet_Converter.dmg
    status: In Progress
    --------------------------------------------------
    createdDate: 2024-03-22T13:49:01.612Z
    id: 1b78fc4a-ff66-4f68-97c6-3f5b9fd9cb75
    name: Lithuanian_CharSet_Converter.dmg
    status: Accepted
    --------------------------------------------------
    createdDate: 2024-03-21T23:02:42.407Z
    id: 5578f290-287a-4782-a63d-8fd129d79d9a
    name: Lithuanian_CharSet_Converter.dmg
    status: Accepted
	
==============================
==============================
==============================
==============================
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/Lithuanian_CharSet_Converter.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/Lithuanian_CharSet_Converter.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!


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





