Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2020-08-27 14:03:01 +0000
committerJonah Graham2020-08-27 14:03:01 +0000
commit0270655844a040bf8c19fff4c59f91b293293fb3 (patch)
treef0ce335b6e34bcb29868da45a79e88ce23ecb721
parent5d738b5c67f0769d96144b3ce6fe88571fe08aa3 (diff)
downloadorg.eclipse.epp.packages-0270655844a040bf8c19fff4c59f91b293293fb3.tar.gz
org.eclipse.epp.packages-0270655844a040bf8c19fff4c59f91b293293fb3.tar.xz
org.eclipse.epp.packages-0270655844a040bf8c19fff4c59f91b293293fb3.zip
Update notarization script to run after package upload
-rwxr-xr-xreleng/org.eclipse.epp.config/tools/macosx-notarization-single.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh b/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh
index 92b3a2ce..78fd9247 100755
--- a/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh
+++ b/releng/org.eclipse.epp.config/tools/macosx-notarization-single.sh
@@ -21,14 +21,14 @@ set -x # echo all commands used for debugging purposes
DMG_FILE="$1"
DMG="$(basename "${DMG_FILE}")"
-cp "${DMG_FILE}" "${DMG}"
+cp "${DMG_FILE}"-tonotarize "${DMG}"
PRIMARY_BUNDLE_ID="$(echo ${DMG} | sed 's/-macosx.cocoa.x86_64.dmg//g' | sed -E 's/^[0-9\-]*_(.*)/\1/g')"
retryCount=3
while [ ${retryCount} -gt 0 ]; do
- RESPONSE_RAW=$(curl --write-out "%{http_code}" -s -X POST -F file=@${DMG} -F 'options={"primaryBundleId": "'${PRIMARY_BUNDLE_ID}'", "staple": true};type=application/json' http://172.30.206.146:8383/macos-notarization-service/notarize)
+ RESPONSE_RAW=$(curl --write-out "\n%{http_code}" -s -X POST -F file=@${DMG} -F 'options={"primaryBundleId": "'${PRIMARY_BUNDLE_ID}'", "staple": true};type=application/json' http://172.30.206.146:8383/macos-notarization-service/notarize)
RESPONSE=$(head -n1 <<<"${RESPONSE_RAW}")
STATUS_CODE=$(tail -n1 <<<"${RESPONSE_RAW}")
UUID="$(echo "${RESPONSE}" | jq -r '.uuid')"
@@ -36,7 +36,7 @@ while [ ${retryCount} -gt 0 ]; do
while [[ ${STATUS} == 'IN_PROGRESS' ]]; do
sleep 1m
- RESPONSE_RAW=$(curl --write-out "%{http_code}" -s http://172.30.206.146:8383/macos-notarization-service/${UUID}/status)
+ RESPONSE_RAW=$(curl --write-out "\n%{http_code}" -s http://172.30.206.146:8383/macos-notarization-service/${UUID}/status)
RESPONSE=$(head -n1 <<<"${RESPONSE_RAW}")
STATUS_CODE=$(tail -n1 <<<"${RESPONSE_RAW}")
STATUS=$(echo ${RESPONSE} | jq -r '.notarizationStatus.status')
@@ -60,3 +60,7 @@ done
rm "${DMG}"
curl -JO http://172.30.206.146:8383/macos-notarization-service/${UUID}/download
cp -vf "${DMG}" "${DMG_FILE}"
+md5sum "${DMG_FILE}" >"${DMG_FILE}".md5
+sha1sum "${DMG_FILE}" >"${DMG_FILE}".sha1
+sha512sum -b "${DMG_FILE}" >"${DMG_FILE}".sha512
+rm "${DMG_FILE}"-tonotarize

Back to the top