annotate deploy/osx/sign.sh @ 715:665da28f1da8
Add pyqt5 and python-crypto dependencies
author |
Chris Cannam |
date |
Wed, 12 Dec 2018 14:10:20 +0000 |
parents |
646e48a0d3a5 |
children |
c59c17665162 |
rev |
line source |
Chris@699
|
1 #!/bin/bash
|
Chris@699
|
2
|
Chris@699
|
3 set -eu
|
Chris@699
|
4
|
Chris@699
|
5 # Execute this from the top-level directory of the project (the one
|
Chris@699
|
6 # that contains the .app bundle). Supply the name of the .app bundle
|
Chris@699
|
7 # as argument
|
Chris@699
|
8 dir="$1"
|
Chris@699
|
9 if [ -z "$dir" ] || [ ! -d "$dir" ]; then
|
Chris@699
|
10 echo "Usage: $0 <pkgdir>"
|
Chris@699
|
11 echo "Where pkgdir is the directory containing <MyApplication>.app"
|
Chris@699
|
12 echo "All .app bundles in pkgdir will be signed"
|
Chris@699
|
13 exit 2
|
Chris@699
|
14 fi
|
Chris@699
|
15
|
Chris@699
|
16 for app in "$dir"/*.app; do
|
Chris@699
|
17 find "$app" -name Qt\* -print | while read fr; do
|
Chris@699
|
18 codesign -s "Developer ID Application: Chris Cannam" -fv --deep "$fr"
|
Chris@699
|
19 done
|
Chris@699
|
20 find "$app" -name \*.dylib -print | while read fr; do
|
Chris@699
|
21 codesign -s "Developer ID Application: Chris Cannam" -fv --deep "$fr"
|
Chris@699
|
22 done
|
Chris@699
|
23 find "$app" -name \*.so -print | while read fr; do
|
Chris@699
|
24 codesign -s "Developer ID Application: Chris Cannam" -fv --deep "$fr"
|
Chris@699
|
25 done
|
Chris@699
|
26 codesign -s "Developer ID Application: Chris Cannam" -fv --deep "$app"
|
Chris@699
|
27 # codesign -s "Developer ID Application: Chris Cannam" -fv \
|
Chris@699
|
28 # --requirements '=designated => identifier "org.easymercurial.EasyMercurial" 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"))' \
|
Chris@699
|
29 # "$app"
|
Chris@699
|
30 done
|
Chris@699
|
31
|