From 34d81e2c983f2acd5ea550e8c3d2f10fe566117b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Tue, 16 Jan 2024 23:01:24 +0300 Subject: [PATCH] appdata: Improve appdata for AppStream 1.0 - Use appstreamcli to validate appdata Part of: https://gitlab.gnome.org/GNOME/Initiatives/-/issues/46 --- data/meson.build | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/data/meson.build b/data/meson.build index 7877b512b..226a23a6f 100644 --- a/data/meson.build +++ b/data/meson.build @@ -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