Skip to content

Commit 8be2340

Browse files
authored
appdata: Improve appdata for AppStream 1.0 (#861)
- Add the `<developer><name>` tag - Mark the `<developer_name>` tag as deprecated - Remove the second appstreamcli validation - Improve appstreamcli arguments
1 parent 895894b commit 8be2340

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

data/app.metainfo.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
<id>@app_id@</id>
44
<launchable type="desktop-id">@app_id@.desktop</launchable>
55
<name translatable="no">Workbench</name>
6+
<!-- developer_name tag deprecated with Appstream 1.0 -->
67
<developer_name translatable="no">Sonny Piers</developer_name>
8+
<developer id="gitlab.com">
9+
<name translatable="no">Sonny Piers</name>
10+
</developer>
711
<update_contact>sonnyp@gnome.org</update_contact>
812
<metadata_license>CC0-1.0</metadata_license>
913
<project_license>GPL-3.0</project_license>

data/meson.build

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,7 @@ appstream_file = configure_file(
2929
appstream_cli = find_program('appstreamcli', required: false)
3030
if appstream_cli.found()
3131
test('Validate metainfo file', appstream_cli,
32-
args: ['validate', '--override=release-time-missing=info', '--no-net', appstream_file]
33-
)
34-
endif
35-
36-
appstreamcli = find_program('appstreamcli', required: false)
37-
if appstreamcli.found()
38-
test('Validate appstream file', appstreamcli,
39-
args: ['validate', appstream_file]
32+
args: ['validate', '--override=release-time-missing=info', '--no-net', '--explain', appstream_file]
4033
)
4134
endif
4235

0 commit comments

Comments
 (0)