appdata: Improve appdata for AppStream 1.0

- Implement appstreamcli validation.
- Correct required and recommended tags.
- Resolve required length errors.
- Include missing `<developer><name>` tag.
- Add the deprecated `developer_name` tag.
- Standardize the translation link with the link in the appdata file.
This commit is contained in:
Sabri Ünal
2023-12-27 18:28:31 +03:00
parent 5304e47700
commit 3c53afc043
3 changed files with 21 additions and 10 deletions
+11
View File
@@ -11,3 +11,14 @@ appdata = i18n.merge_file(
install: true,
install_dir: calendar_datadir / 'metainfo'
)
# Validate Appdata
appstreamcli = find_program('appstreamcli', required: false)
if appstreamcli.found()
test(
'Validate appstream file',
appstreamcli,
args: ['validate', '--no-net', '--explain', appdata.full_path()],
depends: appdata,
)
endif