MacQetDeploy_arm64.sh add Enable hardened runtime flag to fix notarization

Add process to Upload a macOS app to be notarized and validate before upload to QET download servers
This commit is contained in:
Laurent
2023-03-21 14:18:33 +01:00
parent 6d178b324c
commit 6919369a92

View File

@@ -214,7 +214,7 @@ if [ -d "${QET_EXAMPLES_DIR}" ]; then
cp ${current_dir}/examples/*.qet $BUNDLE/Contents/Resources/examples
fi
codesign --force --deep --sign --timestamp -s "Developer ID Application: Laurent TRINQUES (Y73WZ6WZ5X)" $BUNDLE
codesign --force --deep --sign --timestamp -s "Developer ID Application: Laurent TRINQUES (Y73WZ6WZ5X)" --options=runtime $BUNDLE
### create zip tarball ###############################################
echo
@@ -223,6 +223,14 @@ echo "Create zip tarball:"
/usr/bin/ditto -c -k --keepParent $BUNDLE "build-aux/mac-osx/${APPNAME}-$VERSION-r$HEAD-arm64.zip"
### notarize zip tarball ###############################################
echo
echo "______________________________________________________________"
echo "Notarize zip tarball:"
xcrun notarytool submit build-aux/mac-osx/${APPNAME}-$VERSION-r$HEAD-arm64.zip --keychain-profile "org.qelectrotech" --wait
### The end, process is done ##########################################
echo