Mercurial > hg > easyhg
annotate deploy/osx/sign.sh @ 733:7942b7633505
Further to adding Plink component
author | Chris Cannam |
---|---|
date | Mon, 17 Dec 2018 18:48:31 +0000 |
parents | c59c17665162 |
children |
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 |
cannam@724 | 18 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$fr" |
Chris@699 | 19 done |
Chris@699 | 20 find "$app" -name \*.dylib -print | while read fr; do |
cannam@724 | 21 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$fr" |
Chris@699 | 22 done |
Chris@699 | 23 find "$app" -name \*.so -print | while read fr; do |
cannam@724 | 24 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$fr" |
Chris@699 | 25 done |
cannam@724 | 26 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$app" |
Chris@699 | 27 done |
Chris@699 | 28 |