summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
Diffstat (limited to 'solenv')
-rwxr-xr-xsolenv/bin/macosx-codesign-app-bundle9
1 files changed, 6 insertions, 3 deletions
diff --git a/solenv/bin/macosx-codesign-app-bundle b/solenv/bin/macosx-codesign-app-bundle
index 78a7e53a5465..e65d8e63ce3e 100755
--- a/solenv/bin/macosx-codesign-app-bundle
+++ b/solenv/bin/macosx-codesign-app-bundle
@@ -62,9 +62,12 @@ done
for i in gengal python senddoc unoinfo
do
- codesign --verbose --identifier="$MACOSX_BUNDLE_IDENTIFIER.$i" \
- --sign "$MACOSX_CODESIGNING_IDENTITY" "$APP_BUNDLE/Contents/MacOS/$i" \
- || exit 1
+ if [ -f "$APP_BUNDLE/Contents/MacOS/$i" ]
+ then
+ codesign --verbose --identifier="$MACOSX_BUNDLE_IDENTIFIER.$i" \
+ --sign "$MACOSX_CODESIGNING_IDENTITY" "$APP_BUNDLE/Contents/MacOS/$i" \
+ || exit 1
+ fi
done
# Sign frameworks.