I am trying to build an application as a flatpak. While running flatpak-builder I get this error:
Running appstreamcli compose
Only accepting components: io.github.nmstr.taskZen, io.github.nmstr.taskZen.desktop
Processing directory: /mnt/nvme/bigProjects/.flatpak-builder/rofiles/rofiles-89bFVO/files
Composing metadata...
Run failed, some data was ignored.
Errors were raised during this compose run:
general
E: filters-but-no-output
Refer to the generated issue report data for details on the individual problems.
Error: ERROR: appstreamcli compose failed: Child process exited with code 1
I cannot find any generated issue report data. As soon as I comment out this line it works:
install -D io.github.nmstr.taskZen.metainfo.xml /app/share/metainfo/io.github.nmstr.taskZen.metainfo.xml
This leads me to the belive that it is a problem with my metainfo file. I uploaded it to pastebin (<?xml version="1.0" encoding="UTF-8"?><component type="desktop-application"> - Pastebin.com) as it is a little too large for good readability in this post (abt 50 lines). This is the affected part of my manifest:
- name: misc
buildsystem: simple
sources:
- type: dir
path: .
build-commands:
- install -D io.github.nmstr.taskZen.desktop /app/share/applications/io.github.nmstr.taskZen.desktop
- install -D icon.png /app/share/icons/hicolor/512x512/apps/io.github.nmstr.taskZen.png
- install -D io.github.nmstr.taskZen.metainfo.xml /app/share/metainfo/io.github.nmstr.taskZen.metainfo.xml
- cp run.sh /app/bin
- cp gui.sh /app/bin
The entire manifest can again be found on pastebin (app-id: io.github.nmstr.taskZenruntime: org.kde.Platformruntime-version: 6.7 - Pastebin.com).
My projects directory structure is laid out like this:
- flatpak
-
- run.sh
-
- gui.sh
-
- io.github.nmstr.taskZen.desktop
-
- io.github.nmstr.taskZen.metainfo.xml
-
- io.github.nmstr.taskZen.yaml
-
- icon.png (also once name io.github.nmstr.taskZen.png) (512x512)
- src
-
- projects source code
What I have tried so far:
- exclude the metadata file (works but AFAIK I need it to publish on flathub)
- exclude the .desktop file and icon
- isolate the
install -D...
command into its own module in the manifest - create a .sh file that runs the
install -D...
command, which I then run - rename the icon from
icon.png
toio.github.nmstr.taskZen.png
- exactly copy someone else’s metainfo file and the command they use to install it
- same as above but this time changed the ids to match with my project
At this point I am really lost at what this might be. I appreciate any help! Thanks in advance.