Debug OSX signing and notarization

This commit is contained in:
aboyko
2024-09-05 19:06:20 -04:00
parent 7be5c2c658
commit 4cbf46be37
2 changed files with 6 additions and 1 deletions

View File

@@ -7,7 +7,9 @@ dmg_filename="$(basename -- $dmg_file)"
dir="$(dirname "$dmg_file")"
cd $dir
xcrun notarytool submit ./${dmg_filename} --keychain-profile $notarize_profile --wait
submission_id=`xcrun notarytool submit ./${dmg_filename} --keychain-profile $notarize_profile --wait --no-progress -f json | jq -r .id`
echo $submission_id
xcrun notarytool log --keychain-profile $notarize_profile $submission_id
echo "Staple and generate checksums for ${dmg_filename}"
xcrun stapler staple $dmg_filename
if [ $? -eq 0 ]; then

View File

@@ -52,6 +52,9 @@ done
ls -la ${dir}/${destination_folder_name}/SpringToolSuite4.app/
codesign --verbose --deep --force --timestamp --entitlements "${entitlements}" --options=runtime --keychain "${KEYCHAIN}" -s "${MACOS_CERTIFICATE_ID}" ${dir}/${destination_folder_name}/SpringToolSuite4.app
#Verify codesign
codesign --verify --deep --verbose ${dir}/${destination_folder_name}/SpringToolSuite4.app
cd ${dir}/${destination_folder_name}
echo "Generating dmg-config.json..."
echo '{' >> dmg-config.json