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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user