summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2017-01-14 16:53:49 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2017-01-14 16:53:49 +0100
commitabdb32cbad1b85d2d47ad954aa55b468b078a05e (patch)
tree2f18dfe786cbfca1548dc29e525017c700613554 /solenv
parent1c3385fa27bf8f133519a495e384d75de1cf94db (diff)
workaround for codesigning on Mac baseline - do jnilibs first
as otherwise signing fails (LibreOffice.app: code object is not signed at all In subcomponent: path/to/foo.jnilib) Change-Id: I3e4691f2ada408d9e76d200a3291b044753ec85c
Diffstat (limited to 'solenv')
-rwxr-xr-xsolenv/bin/macosx-codesign-app-bundle11
1 files changed, 10 insertions, 1 deletions
diff --git a/solenv/bin/macosx-codesign-app-bundle b/solenv/bin/macosx-codesign-app-bundle
index 7faeb4a9b957..6db54cd4141c 100755
--- a/solenv/bin/macosx-codesign-app-bundle
+++ b/solenv/bin/macosx-codesign-app-bundle
@@ -31,10 +31,19 @@ else
# We then want to sign data files, too, hmm.
other_files="\
-or -name '*.fodt' -or -name 'schema.strings' -or -name 'schema.xml' \
- -or -name '*.jar' -or -name '*.jnilib' -or -name 'LICENSE' -or -name 'LICENSE.html' \
+ -or -name '*.jar' -or -name 'LICENSE' -or -name 'LICENSE.html' \
-or -name '*.applescript' -or -name '*.odt'"
fi
+# Sign jnilibs first as workaround for signing issue on old baseline
+# order matters/screws things up otherwise
+find -d "$APP_BUNDLE" \( -name '*.jnilib' \) ! -type l |
+ while read file; do
+ echo "signing $file"
+ id=`echo ${file#${APP_BUNDLE}/Contents/} | sed -e 's,/,.,g'`
+ codesign --verbose --identifier=$MACOSX_BUNDLE_IDENTIFIER.$id --sign "$MACOSX_CODESIGNING_IDENTITY" "$file" || exit 1
+done
+
# Sign dylibs
#
# The dylibs in the Python framework are called *.so. Go figure