Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions content/docs/terra/appstream.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,20 @@ Source1: %appid.metainfo.xml # This specifies your metainfo.xml file as a sour

---

## Validating Your metainfo.xml File

To validate your `metainfo.xml` file, install `appstream`, then run `appstreamcli validate NAME.metainfo.xml`.
Errors and warnings should be corrected to the best of your ability. In rare cases, errors are fine to have, such as `E: com.github.neohtop:6: metainfo-invalid-icon-type local`.
`infos` can be ignored or corrected at your discretion.

Here is an example of the output of running `appstreamcli validate` on a proper metainfo.xml file:

```bash
appstreamcli validate games/minecraft-java/com.mojang.Minecraft.metainfo.xml
I: com.mojang.Minecraft:50: nonstandard-gnome-extension metadata
I: com.mojang.Minecraft:~: developer-info-missing
```

[^1]: libraries are also supported, see Freedesktop docs for tag provides: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-provides

[^2]: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-keywords
Expand Down