Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
3-manifolds
GitHub Repository: 3-manifolds/Sage_macOS
Path: blob/main/bin/notarize_app
170 views
#!/bin/bash
set -e
source IDs.sh
SAGE_VERSION=`bin/get_sage_version`
SAGE_DASH_VERSION=$(echo $SAGE_VERSION | sed s/\\\./\\\-/g)
DIST=SageMath-$SAGE_VERSION
APP=$DIST/SageMath-$SAGE_DASH_VERSION.app
DMG=SageMath-$SAGE_VERSION.dmg
OPTIONS="--wait --no-progress --apple-id $APPLE_ID \
--team-id $DEV_ID --password $ONE_TIME_PASS --wait"
xcrun notarytool submit $DMG $OPTIONS
xcrun stapler staple $APP