Update macos release script

This commit is contained in:
Dennis Fokin 2023-09-18 10:09:10 +02:00
parent 2e244fc1c2
commit 300d743cda
No known key found for this signature in database
GPG Key ID: 870B88256690D8BC

View File

@ -49,7 +49,7 @@ then
echo ${STATUS} echo ${STATUS}
if [[ "$STATUS" == *"Accepted"* ]]; then if [[ "$STATUS" == *"Accepted"* ]]; then
echo "Notarization successfull. Staple the .app" echo "# Notarization successfull. Staple the .app"
xcrun stapler staple -v "Yubico Authenticator.app" xcrun stapler staple -v "Yubico Authenticator.app"
echo "# Create dmg" echo "# Create dmg"
@ -57,11 +57,21 @@ then
mkdir source_folder mkdir source_folder
mv "Yubico Authenticator.app" source_folder mv "Yubico Authenticator.app" source_folder
sh create-dmg.sh sh create-dmg.sh
echo "# .dmg created. Everything should be ready for release!" echo "# .dmg created."
else else
echo "Error uploading for notarization" echo "Error uploading for notarization"
exit exit
fi fi
echo "# Sign the .dmg"
codesign -f --timestamp --options runtime --sign 'Application' yubioath-desktop.dmg
echo "# Notarize the .dmg"
STATUS=$(xcrun notarytool submit "yubioath-desktop.dmg" --apple-id $1 --team-id LQA3CS5MM7 --password $2 --wait)
echo ${STATUS}
echo "# Staple the .dmg"
xcrun stapler staple -v yubioath-desktop.dmg
echo "# Everything should be ready for release!"
else # App store else # App store
echo "# Build the package for AppStore submission" echo "# Build the package for AppStore submission"
productbuild --sign 'Installer' --component "Yubico Authenticator.app" /Applications/ output-appstore.pkg productbuild --sign 'Installer' --component "Yubico Authenticator.app" /Applications/ output-appstore.pkg