summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-12-20 15:12:42 -0600
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2014-01-09 12:38:18 +0000
commiteeddff97b915588e5bbd273d689e4e79a5d6ec9a (patch)
treeb16fbb5862f7bc1c15953d6a8b84657db610a722 /solenv
parentc002aa137860fc91be815eaf44a489c2653e39f9 (diff)
fix Framework Codesigning on MacOSX
on the 32 bits build 10.6 SDK we deliver Python Framework The code to sign the framework, although clearly the command that is recommanded for such things, failed with "object file format invalid" This patch make it 'works'... and with it the 10.6 build does not complain anymore about not satsifying it's 'requierments' Change-Id: I4fb5c6f3a9ed573d0bb2a09bddaf44300dc6f98b Reviewed-on: https://gerrit.libreoffice.org/7152 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'solenv')
-rwxr-xr-xsolenv/bin/macosx-codesign-app-bundle6
1 files changed, 5 insertions, 1 deletions
diff --git a/solenv/bin/macosx-codesign-app-bundle b/solenv/bin/macosx-codesign-app-bundle
index 5d65b2aefa5a..1546d8f7176a 100755
--- a/solenv/bin/macosx-codesign-app-bundle
+++ b/solenv/bin/macosx-codesign-app-bundle
@@ -19,6 +19,8 @@ for V in \
fi
done
+echo "codesigning using MACSOX_CODESIGNING_IDENTITY=[${MACOSX_CODESIGNING_IDENTITY?}]"
+
APP_BUNDLE=$1
# Sign dylibs
@@ -55,8 +57,10 @@ done
# completeness.
for framework in `find $APP_BUNDLE -name '*.framework' -type d`; do \
+ fn="$(basename $framework)"
+ fn=${fn%.*}
for version in $framework/Versions/*; do \
- if test ! -L $version -a -d $version; then codesign --verbose --prefix=$MACOSX_BUNDLE_IDENTIFIER. --sign "$MACOSX_CODESIGNING_IDENTITY" $version; fi; \
+ if test ! -L $version -a -d $version; then codesign --force --verbose --prefix=$MACOSX_BUNDLE_IDENTIFIER. --sign "$MACOSX_CODESIGNING_IDENTITY" $version/$fn; fi; \
done; \
done