summaryrefslogtreecommitdiff
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 13:47:33 +0100
commit12a2ca3f11afc64ea992c02e57b74e3fd4058f24 (patch)
tree8a271e20839e0e0c8014ffb848178f65208ac628
parent67084404882ceb66b6ace39a5f41135e72d0b427 (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> (cherry picked from commit eeddff97b915588e5bbd273d689e4e79a5d6ec9a) Reviewed-on: https://gerrit.libreoffice.org/7336 (cherry picked from commit dae8c425e6048a2a7f0afab2bab0bf154bdc2d47)
-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