diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-06-09 14:52:08 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-06-09 14:58:02 +0300 |
commit | c506639c9310184d6c35e8ffdb4dafc639d7c92a (patch) | |
tree | 77dd12522eee6a4aa9e00c29d2b0c654737259b5 | |
parent | Use essentially the same OS X code signing script as in libreoffice-4-2 (diff) | |
download | core-c506639c9310184d6c35e8ffdb4dafc639d7c92a.tar.gz core-c506639c9310184d6c35e8ffdb4dafc639d7c92a.zip |
A few improvements to macosx-codesign-app-bundle
Try harder to handle app bundles with space in name. (Not sure if this
version yet does that 100%.)
Include the directory names in the "ids" to make them unique. There
are lots of files with the same name (in different directories, of
course), especially in an app bundle that includes help in multiple
languages.
Change-Id: I424c539f6389ac6f7c9cef96aeb873ddac459f78
-rwxr-xr-x | solenv/bin/macosx-codesign-app-bundle | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/solenv/bin/macosx-codesign-app-bundle b/solenv/bin/macosx-codesign-app-bundle index 195b40ee180b..2f22618882af 100755 --- a/solenv/bin/macosx-codesign-app-bundle +++ b/solenv/bin/macosx-codesign-app-bundle @@ -40,11 +40,14 @@ APP_BUNDLE="$1" # add some where it makes sense. Make a depth-first search to sign the contents # of e.g. the spotlight plugin before attempting to sign the plugin itself -find -d $APP_BUNDLE \( -name '*.dylib' -or -name '*.so' -or -name '*.fodt' \ +find -d "$APP_BUNDLE" \( -name '*.dylib' -or -name '*.so' -or -name '*.fodt' \ -or -name 'schema.strings' -or -name 'schema.xml' -or -name '*.mdimporter' \ -or -name '*.jar' -or -name '*.jnilib' -or -name 'LICENSE' -or -name 'LICENSE.html' \ -or -name '*.applescript' \) ! -type l | grep -v "LibreOfficePython\.framework" | \ -xargs codesign --verbose --prefix=$MACOSX_BUNDLE_IDENTIFIER. --sign "$MACOSX_CODESIGNING_IDENTITY" +while read file; do + id=`echo ${file#${APP_BUNDLE}/Contents/} | sed -e 's,/,.,g'` + codesign --verbose --identifier=$MACOSX_BUNDLE_IDENTIFIER.$id --sign "$MACOSX_CODESIGNING_IDENTITY" "$file" +done find $APP_BUNDLE -name '*.dylib.*' ! -type l | \ while read dylib; do \ |