Mercurial > hg > tony
annotate deploy/osx/sign.sh @ 544:1dddd90cb84e
macOS deployment fixes
author | Chris Cannam |
---|---|
date | Thu, 14 Feb 2019 13:11:27 +0000 |
parents | af696edbd644 |
children | dd344309667f |
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@62 | 16 for app in "$dir"/*.app; do |
Chris@544 | 17 find "$app" -name \*.dylib -print | while read fr; do |
Chris@544 | 18 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$fr" |
Chris@100 | 19 done |
Chris@544 | 20 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$app/Contents/MacOS/Sonic Visualiser" |
Chris@544 | 21 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$app" |
Chris@62 | 22 done |
Chris@62 | 23 |