diff options
-rwxr-xr-x | solenv/bin/macosx-codesign-app-bundle | 6 |
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 |