Skip to content

Commit

Permalink
appdata: Improve appdata for AppStream 1.0
Browse files Browse the repository at this point in the history
- Use appstreamcli to validate appdata

Part of: https://gitlab.gnome.org/GNOME/Initiatives/-/issues/46
  • Loading branch information
Sabri Ünal committed Jan 16, 2024
1 parent 11b2692 commit 34d81e2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,13 @@ appstream_file = i18n.merge_file(
install_dir: join_paths(datadir, 'appdata')
)

appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
# Validate Appdata
appstreamcli = find_program('appstreamcli', required: false)
if (appstreamcli.found())
test(
'Validate appstream file', appstream_util,
args: ['validate', '--nonet', appstream_file.full_path()]
'Validate appstream file', appstreamcli,
args: ['validate', '--no-net', '--explain', appstream_file.full_path()],
workdir: meson.current_build_dir()
)
endif

Expand Down

0 comments on commit 34d81e2

Please sign in to comment.