Skip to content

Commit 8aa32cb

Browse files
authored
feat: add metainfo.xml validation section to terra appstream page (#327)
* feat: add metainfo.xml validation section to terra appstream page * oops * revert "oops" * please dont break this time
1 parent 900632f commit 8aa32cb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

content/docs/terra/appstream.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,20 @@ Source1: %appid.metainfo.xml # This specifies your metainfo.xml file as a sour
185185

186186
---
187187

188+
## Validating Your metainfo.xml File
189+
190+
To validate your `metainfo.xml` file, install `appstream`, then run `appstreamcli validate NAME.metainfo.xml`.
191+
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`.
192+
`infos` can be ignored or corrected at your discretion.
193+
194+
Here is an example of the output of running `appstreamcli validate` on a proper metainfo.xml file:
195+
196+
```bash
197+
appstreamcli validate games/minecraft-java/com.mojang.Minecraft.metainfo.xml
198+
I: com.mojang.Minecraft:50: nonstandard-gnome-extension metadata
199+
I: com.mojang.Minecraft:~: developer-info-missing
200+
```
201+
188202
[^1]: libraries are also supported, see Freedesktop docs for tag provides: https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html#tag-provides
189203

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

0 commit comments

Comments
 (0)