summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-06-09 14:52:08 +0300
committerTor Lillqvist <tml@collabora.com>2014-06-09 14:58:02 +0300
commitc506639c9310184d6c35e8ffdb4dafc639d7c92a (patch)
tree77dd12522eee6a4aa9e00c29d2b0c654737259b5 /solenv
parent9835fa87ac6ffe43bd9cc85839b2fea1fca2fcad (diff)
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
Diffstat (limited to 'solenv')
-rwxr-xr-xsolenv/bin/macosx-codesign-app-bundle7
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 \