From 59a74be529bec457d0c12f62d3f9537dd0a7e90d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sabri=20=C3=9Cnal?= Date: Mon, 27 May 2024 09:25:58 +0300 Subject: [PATCH] meson: Use appstreamcli Use appstreamcli to validate appdata More information: https://docs.flathub.org/docs/for-app-authors/metainfo-guidelines/#validation --- meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meson.build b/meson.build index 7f8f6ea..045daf3 100644 --- a/meson.build +++ b/meson.build @@ -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)