comparison deploy/osx/sign.sh @ 2075:dd479ad12c29 zoom

Merge from default branch
author Chris Cannam
date Tue, 06 Nov 2018 10:43:23 +0000
parents 4f4eb416fcb4
children d33dff02b39b 9ca6872a5d0f
comparison
equal deleted inserted replaced
2041:214ee4c2bc61 2075:dd479ad12c29
10 echo "Usage: $0 <pkgdir>" 10 echo "Usage: $0 <pkgdir>"
11 echo "Where pkgdir is the directory containing <MyApplication>.app" 11 echo "Where pkgdir is the directory containing <MyApplication>.app"
12 echo "All .app bundles in pkgdir will be signed" 12 echo "All .app bundles in pkgdir will be signed"
13 exit 2 13 exit 2
14 fi 14 fi
15
16 # NB at some point we are going to have to include "--options runtime"
17 # in all of these codesign invocations, and figure out what to do
18 # about signing plugins...
19
15 for app in "$dir"/*.app; do 20 for app in "$dir"/*.app; do
21 find "$app" -name \*.dylib -print | while read fr; do
22 codesign -s "Developer ID Application: Chris Cannam" -fv --deep "$fr"
23 done
24 codesign -s "Developer ID Application: Chris Cannam" -fv --deep "$app/Contents/MacOS/Sonic Visualiser"
16 codesign -s "Developer ID Application: Chris Cannam" -fv --deep "$app" 25 codesign -s "Developer ID Application: Chris Cannam" -fv --deep "$app"
17 # find "$app" -name Qt\* -print | while read fr; do 26 # codesign -s "Developer ID Application: Chris Cannam" -fv --deep \
18 # codesign -s "Developer ID Application: Chris Cannam" -fv "$fr" 27 # --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"))' \
19 # done 28 # "$app"
20 # find "$app" -name \*.dylib -print | while read fr; do
21 # codesign -s "Developer ID Application: Chris Cannam" -fv "$fr"
22 # done
23 # find "$app/Contents/MacOS" -type f -print | while read fr; do
24 # codesign -s "Developer ID Application: Chris Cannam" -fv "$fr"
25 # done
26 codesign -s "Developer ID Application: Chris Cannam" -fv \
27 --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"))' \
28 "$app"
29 done 29 done
30 30