From 093ffe791ebf193a5c96d4628dc35354324b4875 Mon Sep 17 00:00:00 2001 From: Jesse Rhodes Date: Sun, 5 Apr 2026 10:31:19 -0400 Subject: [PATCH 1/2] test: Switch to appstreamcli for metainfo validation. --- data/misc/meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/misc/meson.build b/data/misc/meson.build index 1e9cdc91..5b555e81 100644 --- a/data/misc/meson.build +++ b/data/misc/meson.build @@ -13,10 +13,10 @@ if get_option('gtk-frontend') install_dir: metainfodir ) - appstream_util = find_program('appstream-util', required: false) - if appstream_util.found() - test('Validate net.zoite.Zoitechat.appdata.xml', appstream_util, - args: ['validate-relax', zoitechat_appdata] + appstreamcli = find_program('appstreamcli', required: false) + if appstreamcli.found() + test('Validate net.zoite.Zoitechat.appdata.xml', appstreamcli, + args: ['validate', zoitechat_appdata] ) endif endif From 0ccc730d85815c5ae17f2107412539b532e602c8 Mon Sep 17 00:00:00 2001 From: Jesse Rhodes Date: Sun, 5 Apr 2026 10:35:54 -0400 Subject: [PATCH 2/2] test: Validate plugin metainfo. --- data/misc/meson.build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/data/misc/meson.build b/data/misc/meson.build index 5b555e81..68010760 100644 --- a/data/misc/meson.build +++ b/data/misc/meson.build @@ -97,11 +97,18 @@ if get_option('plugin') conf.set('SUMMARY', metainfo[1]) conf.set('LICENSE', metainfo[2]) - configure_file( + plugin_appdata = configure_file( input: 'net.zoite.Zoitechat.Plugin.metainfo.xml.in', output: 'net.zoite.Zoitechat.Plugin.@0@.metainfo.xml'.format(name), configuration: conf, install_dir: get_option('install-plugin-metainfo') ? metainfodir : '', ) + + if appstreamcli.found() + test('Validate net.zoite.Zoitechat.Plugin.@0@.metainfo.xml'.format(name), appstreamcli, + args: ['validate', plugin_appdata] + ) + endif + endforeach endif