public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [flatpaks/flatpak-runtime] f45: container.yaml: Run appstream-compose
@ 2026-09-11 14:41 Kalev Lember
  0 siblings, 0 replies; only message in thread
From: Kalev Lember @ 2026-09-11 14:41 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : flatpaks/flatpak-runtime
            Branch : f45
            Commit : 787e9749dccb0dada873a650e5399a258eb3db5a
            Author : Kalev Lember <klember@redhat.com>
            Date   : 2020-09-09T13:32:50+02:00
            Stats  : +10/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/flatpaks/flatpak-runtime/c/787e9749dccb0dada873a650e5399a258eb3db5a?branch=f45

            Log:
            container.yaml: Run appstream-compose

Just adding the appdata to the flatpak-runtime-config wasn't sufficient -
we also have to run appstream-compose to get it in the right place for
flatpak build-bundle to find.

---
diff --git a/container.yaml b/container.yaml
index 373624f..945c71b 100644
--- a/container.yaml
+++ b/container.yaml
@@ -11,6 +11,16 @@ flatpak:
         --env=GST_PLUGIN_SYSTEM_PATH=/app/lib64/gstreamer-1.0:/usr/lib64/gstreamer-1.0
         --env=LD_LIBRARY_PATH=/app/lib64
         --env=XDG_DATA_DIRS=/app/share:/usr/share:/usr/share/runtime/share:/run/host/share
+    # For applications, appstream-compose is run automatically along with other processing
+    # of the tree. For runtimes, we have to run it manually. flatpak-module-tools local
+    # builds have issues if the cleanup script outputs to stdout, hence the 1>&2
+    # redirection.
     cleanup-commands: |
+        appstream-compose --verbose   \
+            --prefix=/usr             \
+            --basename=org.fedoraproject.Platform \
+            --origin=flatpak          \
+            org.fedoraproject.Platform 1>&2
+
         touch -d @0 /usr/share/fonts /usr/share/fonts/*
         fc-cache -rs

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 14:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 14:41 [flatpaks/flatpak-runtime] f45: container.yaml: Run appstream-compose Kalev Lember

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox