mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-27 04:03:16 +03:00
Update macos release script
This commit is contained in:
parent
2e244fc1c2
commit
300d743cda
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user