Skip to content

Commit

Permalink
meson: Use appstreamcli
Browse files Browse the repository at this point in the history
Use appstreamcli to validate appdata

More information: https://docs.flathub.org/docs/for-app-authors/metainfo-guidelines/#validation
  • Loading branch information
yakushabb authored and whot committed May 28, 2024
1 parent eb6bc67 commit 59a74be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ if desktop_validate.found()
test('desktop-file-validate', desktop_validate, args: [desktop_file])
endif

appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test('appstream-util validate-relax', appstream_util,
args: ['validate-relax', appdata])
appstreamcli = find_program('appstreamcli', required: false)
if appstreamcli.found()
test('appstreamcli validate', appstreamcli,
args: ['validate', '--no-net', '--explain', appdata])
endif

pytest = find_program('pytest-3', required: false)
Expand Down

0 comments on commit 59a74be

Please sign in to comment.