appdata: Improve appdata for AppStream 1.0
- Add the `<developer><name>` tag - Mark the `<developer_name>` as deprecated - Use appstreamcli to validate appdata - Remove one of Purism tag to pass appstreamcli validation
This commit is contained in:
parent
410e71141f
commit
3ed3b26450
2 changed files with 14 additions and 1 deletions
|
|
@ -88,6 +88,16 @@ appstream_file = i18n.merge_file(
|
||||||
install_dir: iv_datadir / 'metainfo'
|
install_dir: iv_datadir / 'metainfo'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Validate Appdata
|
||||||
|
appstreamcli = find_program('appstreamcli', required: false)
|
||||||
|
if (appstreamcli.found())
|
||||||
|
test('Validate metainfo file',
|
||||||
|
appstreamcli,
|
||||||
|
args: ['validate', '--no-net', appstream_file],
|
||||||
|
workdir: meson.current_build_dir()
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
subdir('icons')
|
subdir('icons')
|
||||||
|
|
||||||
# GSchema
|
# GSchema
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,11 @@
|
||||||
<metadata_license>CC0-1.0</metadata_license>
|
<metadata_license>CC0-1.0</metadata_license>
|
||||||
<project_license>GPL-3.0-or-later</project_license>
|
<project_license>GPL-3.0-or-later</project_license>
|
||||||
<name>Image Viewer</name>
|
<name>Image Viewer</name>
|
||||||
|
<!-- developer_name tag deprecated with Appstream 1.0 -->
|
||||||
<developer_name>The Loupe Team</developer_name>
|
<developer_name>The Loupe Team</developer_name>
|
||||||
|
<developer id="gnome.org">
|
||||||
|
<name>The Loupe Team</name>
|
||||||
|
</developer>
|
||||||
<summary>View images</summary>
|
<summary>View images</summary>
|
||||||
<description>
|
<description>
|
||||||
<p>Browse through your images and inspect their metadata with:</p>
|
<p>Browse through your images and inspect their metadata with:</p>
|
||||||
|
|
@ -54,7 +58,6 @@
|
||||||
<content_rating type="oars-1.1" />
|
<content_rating type="oars-1.1" />
|
||||||
<custom>
|
<custom>
|
||||||
<value key="GnomeSoftware::key-colors">[(208, 105, 167)]</value>
|
<value key="GnomeSoftware::key-colors">[(208, 105, 167)]</value>
|
||||||
<value key="Purism::form_factor">workstation</value>
|
|
||||||
<value key="Purism::form_factor">mobile</value>
|
<value key="Purism::form_factor">mobile</value>
|
||||||
</custom>
|
</custom>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue