mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-07 05:38:30 +02:00
add metainfo test
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:

committed by
afayaz-feral

parent
f95470c94a
commit
6453a123ab
@@ -66,7 +66,22 @@ install_man(
|
||||
)
|
||||
|
||||
# Install metainfo
|
||||
metainfo_file = files('io.github.feralinteractive.gamemode.metainfo.xml')
|
||||
|
||||
install_data(
|
||||
'io.github.feralinteractive.gamemode.metainfo.xml',
|
||||
metainfo_file,
|
||||
install_dir: join_paths(path_datadir, 'metainfo')
|
||||
)
|
||||
|
||||
# Validate metainfo
|
||||
appstreamcli = find_program(
|
||||
'appstreamcli',
|
||||
required: false
|
||||
)
|
||||
if appstreamcli.found()
|
||||
test(
|
||||
'validate metainfo file',
|
||||
appstreamcli,
|
||||
args: ['validate', '--no-net', '--pedantic', metainfo_file],
|
||||
)
|
||||
endif
|
||||
|
Reference in New Issue
Block a user