From 886d5c8a9ea1811d3bdf2cb929d70b3cb9559aeb Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 21 Mar 2017 11:47:07 +0200 Subject: [PATCH] Resolved issue #433. Enroll in the mac development program. --HG-- branch : develop --- scripts/sign_mac_bundle.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 scripts/sign_mac_bundle.sh diff --git a/scripts/sign_mac_bundle.sh b/scripts/sign_mac_bundle.sh new file mode 100644 index 000000000..68bbe21c7 --- /dev/null +++ b/scripts/sign_mac_bundle.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +# Use the script to sign your app bundle on Mac OS X. +# Requirement Mac OS El Capitan or later. +# An app bundle must be in the same folder. + +# Name of your certificate in look "Developer ID Application: " +# Be sure that you use Developer ID certificate! +CERTIFICATE="Developer ID Application: " +BUNDLE=Valentina.app + +# all must be signed +#s ign all *.dylib +find $BUNDLE -name *.dylib | xargs -I $ codesign -f -v -v -vvvv --deep --strict -s "$CERTIFICATE" $ + +# sign Qt frameworks +find $BUNDLE -name Qt* -type f | xargs -I $ codesign -f -v -v -vvvv --deep --strict -s "$CERTIFICATE" $ + +# sign all binaries +find $BUNDLE -path */MacOS/* -type f | xargs -I $ codesign -f -v -v -vvvv --deep --strict -s "$CERTIFICATE" $ + +# sign the app bundle +codesign -f -v -v -vvvv --deep --strict -s "$CERTIFICATE" ./$BUNDLE + +#verify in the end +codesign -v -vvvv ./$BUNDLE +spctl -a -t exec -vv ./$BUNDLE