Skip to content

Commit

Permalink
Merge pull request #732 from sabriunal/fix-appdata
Browse files Browse the repository at this point in the history
  • Loading branch information
sstendahl committed Jan 16, 2024
2 parents 11b2692 + 34d81e2 commit 73c537d
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 73c537d

Please sign in to comment.