mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
macOS: use notarytool for notarization
Change-Id: I34fba8587725834ffd4b5c35cf2bab50c8faa3f4
This commit is contained in:
parent
9fc9db7826
commit
4a60f0fc9e
1 changed files with 4 additions and 23 deletions
|
@ -2,22 +2,10 @@
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
cd build-local
|
cd build-local
|
||||||
/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/Frameworks/AppStoreService.framework/Versions/A/Support/altool --notarize-app -t osx -f Jami.app.zip --primary-bundle-id ${BUNDLE_ID} -u ${APPLE_ACCOUNT} -p ${APPLE_PASSWORD} --output-format xml -itc_provider ${TEAM_ID} > UploadInfo.plist
|
xcrun notarytool submit Jami.app.zip --apple-id ${APPLE_ACCOUNT} --password ${APPLE_PASSWORD} --output-format plist --team-id ${TEAM_ID} --wait > UploadInfo.plist
|
||||||
REQUESTID=$(xmllint --xpath "/plist/dict[key='notarization-upload']/dict/key[.='RequestUUID']/following-sibling::string[1]/node()" UploadInfo.plist)
|
|
||||||
echo "file uploaded for notarization"
|
STATUS=$(xmllint --xpath "/plist/dict/key[.='status']/following-sibling::string[1]/node()" UploadInfo.plist)
|
||||||
echo ${REQUESTID}
|
if [ "$STATUS" == "Accepted" ];
|
||||||
sleep 60
|
|
||||||
x=1
|
|
||||||
while [ $x -le 15 ];
|
|
||||||
do
|
|
||||||
/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/Frameworks/AppStoreService.framework/Versions/A/Support/altool --notarization-info ${REQUESTID} -u ${APPLE_ACCOUNT} -p ${APPLE_PASSWORD} --output-format xml > RequestedInfo.plist
|
|
||||||
ANSWER=$(xmllint --xpath "/plist/dict[key='notarization-info']/dict/key[.='Status']/following-sibling::string[1]/node()" RequestedInfo.plist)
|
|
||||||
if [ "$ANSWER" == "in progress" ];
|
|
||||||
then
|
|
||||||
echo "notarization in progress"
|
|
||||||
sleep 60
|
|
||||||
x=$(( $x + 1 ))
|
|
||||||
elif [ "$ANSWER" == "success" ]
|
|
||||||
then
|
then
|
||||||
echo "notarization success"
|
echo "notarization success"
|
||||||
break
|
break
|
||||||
|
@ -26,10 +14,3 @@ echo "notarization failed"
|
||||||
break
|
break
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
ANSWER=$(xmllint --xpath "/plist/dict[key='notarization-info']/dict/key[.='Status']/following-sibling::string[1]/node()" RequestedInfo.plist)
|
|
||||||
if [ "$ANSWER" != "success" ];
|
|
||||||
then
|
|
||||||
echo "notarization failed"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue