Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #49 from sabriunal/fix-appdata
Browse files Browse the repository at this point in the history
appdata: Improve appdata for AppStream 1.0
  • Loading branch information
vixalien authored Dec 28, 2023
2 parents f39eafa + f8e692e commit 8246501
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions build-aux/flatpak/com.vixalien.decibels.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
{
"name": "decibels",
"buildsystem": "meson",
"run-tests": true,
"config-opts": [
"-Dprofile=development"
],
Expand Down
4 changes: 4 additions & 0 deletions data/com.vixalien.decibels.metainfo.xml.in.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
<summary>Play audio files</summary>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0</project_license>
<!-- developer_name tag deprecated with Appstream 1.0 -->
<developer_name translatable="no">Angelo Verlain</developer_name>
<developer id="github.com">
<name translatable="no">Angelo Verlain</name>
</developer>
<update_contact>[email protected]</update_contact>
<description>
<p>Current features:</p>
Expand Down
11 changes: 8 additions & 3 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ appstream_file = i18n.merge_file(
install_dir: decibels_datadir / 'metainfo'
)

appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test('Validate appstream file', appstream_util, args: ['validate', '--nonet', appstream_file])
# Validate Appdata
appstreamcli = find_program('appstreamcli', required: false)
if (appstreamcli.found())
test('Validate appdata file',
appstreamcli,
args: ['validate', '--no-net', '--explain', appstream_file],
workdir: meson.current_build_dir()
)
endif

gsettings_conf = configuration_data()
Expand Down

0 comments on commit 8246501

Please sign in to comment.