summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2022-07-14 10:28:09 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2022-07-15 17:43:37 +0200
commitbabd850db840eebd59b71730b446c0d89de87d3a (patch)
treef3f544c3542285e7e64b09baa770bb40131aa887 /solenv
parent386a9fadffa446caf40fd4f40b865c8c9432fa27 (diff)
macOS sandbox: disable donation info bar & help entries
even when you are a verified non-profit, you still cannot just point to a donation site/you still would have to offer apple-pay... the helpmenu one is ugly since it changes the endresult compared to what is assembled in instdir, but is the least intrusive way for now... Change-Id: Id348d69371048bdd04d2961cad564fc73f11fd45 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137050 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'solenv')
-rwxr-xr-xsolenv/bin/macosx-codesign-app-bundle3
1 files changed, 3 insertions, 0 deletions
diff --git a/solenv/bin/macosx-codesign-app-bundle b/solenv/bin/macosx-codesign-app-bundle
index b79c3d8003b3..a29b339de744 100755
--- a/solenv/bin/macosx-codesign-app-bundle
+++ b/solenv/bin/macosx-codesign-app-bundle
@@ -31,6 +31,9 @@ if test -n "$ENABLE_MACOSX_SANDBOX"; then
# All data files are in Resources and included in the app bundle signature
# through that. I think.
other_files=''
+ # HACK: remove donate menu entries, need to support apple-pay and be verified
+ # as non profit as a bare minimum to allow asking....
+ sed -I "" -e '\#<menu:menuitem menu:id=".uno:Donation"/>#d' $APP_BUNDLE/Contents/Resources/config/soffice.cfg/modules/*/menubar/menubar.xml
else
# We then want to sign data files, too, hmm.
entitlements="--entitlements $BUILDDIR/hardened_runtime.xcent"