Appstream related patches (#212)

* appdata: use appstreamcli for appdata validation

appstream-util is obsoleted by appstreamcli.

* appdata: Update appdata

- Add translation tag
- Add categories and keywords tags

* Capitalize keywords to avoid duplicate strings

* Remove catrgories and keywords

They are unnecessary for Flathub

---------

Co-authored-by: kramo <contact@kramo.hu>
This commit is contained in:
Sabri Ünal
2023-11-12 14:42:27 +03:00
committed by GitHub
parent b574439328
commit e5f8e81c2e
2 changed files with 4 additions and 3 deletions

View File

@@ -17,6 +17,7 @@
<developer_name translatable="no">kramo</developer_name>
<project_group>GNOME</project_group>
<launchable type="desktop-id">@APP_ID@.desktop</launchable>
<translation type="gettext">cartridges</translation>
<supports>
<control>pointing</control>
<control>keyboard</control>

View File

@@ -52,9 +52,9 @@ appstream_file = i18n.merge_file(
install_dir: join_paths(get_option('datadir'), 'metainfo')
)
appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test('Validate appstream file', appstream_util, args: ['validate', appstream_file])
appstreamcli = find_program('appstreamcli', required: false)
if appstreamcli.found()
test('Validate appstream file', appstreamcli, args: ['validate', appstream_file])
endif
install_data(