From 24f22b4e5e625c843791906710fe7b950bb3920d Mon Sep 17 00:00:00 2001 From: scx Date: Fri, 21 Feb 2020 05:40:02 +0100 Subject: [PATCH] Fix AppData file The provides tag describes the public interfaces this program provides. The binary tag is a child tag of the provides tag. It provides the name of a binary installed into a location in PATH. However, flatpak doesn't export any binaries on the host. https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-provides --- RawTherapee.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/RawTherapee.yaml b/RawTherapee.yaml index e23c154..c7281b9 100644 --- a/RawTherapee.yaml +++ b/RawTherapee.yaml @@ -42,6 +42,13 @@ post-install: xmlstarlet ed --inplace -s '/component' -t elem -n 'developer_name' -v 'The RawTherapee Team' "${f}"; # rawtherapee-cli is not accessible from the host xmlstarlet ed --inplace -d "/component/provides/binary[text()='rawtherapee-cli']" "${f}"; + # The provides tag describes the public interfaces this program provides + # The binary tag is a child tag of the provides tag + # It provides the name of a binary installed into a location in PATH + # However, flatpak doesn't export any binaries on the host + # https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-provides + xmlstarlet ed --inplace -d '/component/provides/binary' "${f}"; + xmlstarlet ed --inplace -d '/component/provides[not(./*) and (not(./text()) or normalize-space(./text())="")]' "${f}"; done; - install -p -D -m 0644 "../LICENSE.txt" -t "${FLATPAK_DEST}/share/licenses/rawtherapee/"; modules: