Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appdata: Improve appdata for AppStream 1.0 #48

Merged
merged 1 commit into from Dec 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build-aux/io.github.fkinoshita.Telegraph.Devel.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"name" : "telegraph",
"builddir" : true,
"buildsystem" : "meson",
"run-tests": true,
"config-opts" : [
"-Dprofile=development"
],
Expand Down
4 changes: 4 additions & 0 deletions data/io.github.fkinoshita.Telegraph.metainfo.xml.in.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
<id>@APPID@</id>
<launchable type="desktop-id">@[email protected]</launchable>
<name translatable="no">@NAME@</name>
<!-- developer_name tag deprecated with Appstream 1.0 -->
<developer_name translatable="no">Felipe Kinoshita</developer_name>
<developer id="github.com">
<name translatable="no">Felipe Kinoshita</name>
</developer>
<update_contact>[email protected]</update_contact>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-only</project_license>
Expand Down
12 changes: 6 additions & 6 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ metainfo = i18n.merge_file(
po_dir: join_paths(meson.project_source_root(), 'po')
)

# Validating the metainfo file
appstreamcli = find_program('appstream-util', required: false)
if appstreamcli.found()
test (
'Validate metainfo file',
# Validate Appdata
appstreamcli = find_program('appstreamcli', required: false)
if (appstreamcli.found())
test('Validate metainfo file',
appstreamcli,
args: ['validate-relax', '--nonet', join_paths(meson.current_build_dir (), application_id + '.metainfo.xml')]
args: ['validate', '--no-net', '--explain', metainfo],
workdir: meson.current_build_dir()
)
endif

Expand Down