comparison deploy/osx/sign.sh @ 680:1e993a922d79

Fix app signing: on os/x 10.9 you need to sign other frameworks etc as well
author Chris Cannam
date Thu, 05 Dec 2013 20:24:40 +0000
parents d0e17e571e54
children 1e63105fc82d
comparison
equal deleted inserted replaced
679:dbd9bd36a390 680:1e993a922d79
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Execute this from the top-level directory of the project (the one 3 # Execute this from the top-level directory of the project (the one
4 # that contains the .app bundle). Supply the name of the .app bundle 4 # that contains the .app bundle). Supply the name of the .app bundle
5 # as argument 5 # as argument
6 dir="$1" 6 dir="$1"
9 echo "Where pkgdir is the directory containing <MyApplication>.app" 9 echo "Where pkgdir is the directory containing <MyApplication>.app"
10 echo "All .app bundles in pkgdir will be signed" 10 echo "All .app bundles in pkgdir will be signed"
11 exit 2 11 exit 2
12 fi 12 fi
13 for app in "$dir"/*.app; do 13 for app in "$dir"/*.app; do
14 find "$app" -name Qt\* -print | while read fr; do
15 codesign -s "Developer ID Application: Chris Cannam" -fv "$fr"
16 done
17 find "$app" -name \*.dylib -print | while read fr; do
18 codesign -s "Developer ID Application: Chris Cannam" -fv "$fr"
19 done
14 codesign -s "Developer ID Application: Chris Cannam" -fv \ 20 codesign -s "Developer ID Application: Chris Cannam" -fv \
15 --requirements '=designated => identifier "org.sonicvisualiser.SonicVisualiser" and ( (anchor apple generic and certificate leaf[field.1.2.840.113635.100.6.1.9] ) or (anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] and certificate leaf[field.1.2.840.113635.100.6.1.13] and certificate leaf[subject.OU] = "43AQ936H96"))' \ 21 --requirements '=designated => identifier "org.sonicvisualiser.SonicVisualiser" and ( (anchor apple generic and certificate leaf[field.1.2.840.113635.100.6.1.9] ) or (anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] and certificate leaf[field.1.2.840.113635.100.6.1.13] and certificate leaf[subject.OU] = "M2H8666U82"))' \
16 "$app" 22 "$app"
17 done 23 done
18 24