Commit eee16cde authored by Kateryna Kostiuk's avatar Kateryna Kostiuk Committed by Andreas Traczyk

build: add deployment script

Change-Id: I5c213b3870c1542970b2eb575cb4960402fe6d22
Reviewed-by: Andreas Traczyk's avatarAndreas Traczyk <>
parent 6b55df76
echo ""
cd build-local
macdeployqt ./
echo "cloning certificates"
echo "prepare keychain"
security create-keychain -p $KEYCHAIN_PASSWORD $KEYCHAIN_NAME
security unlock-keychain -p $KEYCHAIN_PASSWORD $KEYCHAIN_NAME
security list-keychains -s $KEYCHAIN_NAME
security set-key-partition-list -S apple-tool:,apple:,productbuild: -s -k $KEYCHAIN_PASSWORD $KEYCHAIN_NAME
echo "import certificates"
security import certificates/certificates/distribution/Certificates.p12 -k $KEYCHAIN_PATH -P $CERTIFICATES_PASSWORD -T /usr/bin/codesign -T /usr/bin/productbuild
DELIVER_PASSWORD=$APPLE_PASSWORD fastlane sigh --app_identifier $BUNDLE_ID --username $APPLE_ACCOUNT --readonly true --platform macos --team_id $TEAM_ID
security set-key-partition-list -S apple-tool:,apple:,productbuild: -s -k $KEYCHAIN_PASSWORD $KEYCHAIN_NAME
echo "start signing"
codesign --deep --force --verbose --sign "${APP_CERTIFICATE}" --entitlements ../data/Ring.entitlements
codesign --verify --verbose
echo "create .pkg"
productbuild --component /Applications --sign "${INSTALLER_CERTIFICATE}" --product Ring.pkg
pkgutil --check-signature Ring.pkg
/Applications/\ --validate-app --type osx -f Ring.pkg -u $APPLE_ACCOUNT --password $APPLE_PASSWORD
echo "start deploying"
/Applications/\ --upload-app --type osx -f Ring.pkg -u $APPLE_ACCOUNT --password $APPLE_PASSWORD
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment