Mercurial > hg > tony
annotate deploy/osx/sign.sh @ 684:1f1824a93c7d v2.1.1
Merge
author | Chris Cannam |
---|---|
date | Tue, 10 Dec 2019 09:42:21 +0000 |
parents | fe1a77d4aeaa |
children |
rev | line source |
---|---|
Chris@100 | 1 #!/bin/bash |
Chris@62 | 2 |
Chris@437 | 3 set -eu |
Chris@437 | 4 |
Chris@62 | 5 # Execute this from the top-level directory of the project (the one |
Chris@62 | 6 # that contains the .app bundle). Supply the name of the .app bundle |
Chris@62 | 7 # as argument |
Chris@62 | 8 dir="$1" |
Chris@62 | 9 if [ -z "$dir" ] || [ ! -d "$dir" ]; then |
Chris@62 | 10 echo "Usage: $0 <pkgdir>" |
Chris@62 | 11 echo "Where pkgdir is the directory containing <MyApplication>.app" |
Chris@62 | 12 echo "All .app bundles in pkgdir will be signed" |
Chris@62 | 13 exit 2 |
Chris@62 | 14 fi |
Chris@544 | 15 |
Chris@619 | 16 entitlements=deploy/osx/Entitlements.plist |
cannam@567 | 17 |
Chris@619 | 18 for app in "$dir"/*.app; do |
Chris@619 | 19 find "$app" -name \*.dylib -print | while read fr; do |
Chris@619 | 20 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$fr" |
Chris@619 | 21 done |
Chris@619 | 22 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime --entitlements "$entitlements" "$app/Contents/MacOS/Tony" |
Chris@619 | 23 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime --entitlements "$entitlements" "$app" |
Chris@619 | 24 done |
Chris@589 | 25 |