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>
This commit is contained in:
@@ -118,6 +118,7 @@ $(eval $(call gb_Configuration_add_spool_modules,registry,officecfg/registry/dat
|
||||
org/openoffice/Office/UI/WriterWindowState-librelogo.xcu \
|
||||
) \
|
||||
org/openoffice/Office/UI/Controller-reportbuilder.xcu \
|
||||
org/openoffice/Office/UI/Infobar-macosxsandbox.xcu \
|
||||
org/openoffice/TypeDetection/UISort-writer.xcu \
|
||||
org/openoffice/TypeDetection/UISort-calc.xcu \
|
||||
org/openoffice/TypeDetection/UISort-draw.xcu \
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
-->
|
||||
<!DOCTYPE oor:component-data SYSTEM "../../../../../component-update.dtd">
|
||||
<oor:component-data oor:name="Infobar" oor:package="org.openoffice.Office.UI" xmlns:install="http://openoffice.org/2004/installation" xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<node oor:name="Enabled" install:module="macosxsandbox">
|
||||
<prop oor:name="Donate">
|
||||
<value>false</value>
|
||||
</prop>
|
||||
</node>
|
||||
</oor:component-data>
|
||||
@@ -306,6 +306,10 @@ ifneq ($(WITH_WEBDAV),)
|
||||
postprocess_FILES_main += $(postprocess_MOD)/org/openoffice/ucb/Configuration-webdav.xcu
|
||||
endif
|
||||
|
||||
ifneq ($(ENABLE_MACOSX_SANDBOX),)
|
||||
postprocess_FILES_main += $(postprocess_MOD)/org/openoffice/Office/UI/Infobar-macosxsandbox.xcu
|
||||
endif
|
||||
|
||||
ifneq (,$(SYSTEM_LIBEXTTEXTCAT_DATA))
|
||||
postprocess_FILES_main += $(postprocess_MOD)/org/openoffice/Office/Paths-externallibexttextcatdata.xcu
|
||||
else
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user