Skip to content

Commit

Permalink
appdata: Improve appdata for AppStream 1.0
Browse files Browse the repository at this point in the history
- Add the `<developer><name>` tag
- Mark the `<developer_name>` tag as deprecated
- Improve appstreamcli parameters
- Activate meson tests on Flatpak manifest
  • Loading branch information
yakushabb authored and rafaelmardojai committed Jan 3, 2024
1 parent deb992a commit 4297304
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions com.rafaelmardojai.Blanket.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"name" : "blanket",
"builddir" : true,
"buildsystem" : "meson",
"run-tests" : true,
"sources" : [
{
"type" : "dir",
Expand Down
4 changes: 4 additions & 0 deletions data/com.rafaelmardojai.Blanket.metainfo.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
<url type="translate">https://hosted.weblate.org/engage/blanket/</url>
<url type="donation">https://rafaelmardojai.com/donate/</url>
<url type="vcs-browser">https://github.com/rafaelmardojai/blanket</url>
<!-- developer_name tag deprecated with Appstream 1.0 -->
<developer_name translatable="no">Rafael Mardojai CM</developer_name>
<developer id="github.com">
<name translatable="no">Rafael Mardojai CM</name>
</developer>
<update_contact>email_AT_rafaelmardojai.com</update_contact>
<content_rating type="oars-1.1" />

Expand Down
3 changes: 2 additions & 1 deletion data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ appstream_file = i18n.merge_file(
appstreamcli = find_program('appstreamcli', required: false)
if appstreamcli.found()
test('Validate appstream file', appstreamcli,
args: ['validate', '--no-net', appstream_file]
args: ['validate', '--no-net', '--explain', appstream_file],
workdir: meson.current_build_dir()
)
endif

Expand Down

0 comments on commit 4297304

Please sign in to comment.