about window: show data from appdata file
This commit is contained in:
47
data/resources/com.ranfdev.Notify.metainfo.xml.in.in
Normal file
47
data/resources/com.ranfdev.Notify.metainfo.xml.in.in
Normal file
@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- ranfdev 2019 <ranfdev@gmail.com> -->
|
||||
<component type="desktop-application">
|
||||
<id>@app-id@</id>
|
||||
<metadata_license>CC0</metadata_license>
|
||||
<!-- Insert your license of choice here -->
|
||||
<project_license>GPL-3.0-or-later</project_license>
|
||||
<name>Notify</name>
|
||||
<summary>Receive notifications from ntfy.sh.</summary>
|
||||
<description>
|
||||
<p>Versatile GTK4 client designed to seamlessly interface with the ntfy.sh notification service</p>
|
||||
</description>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image>https://raw.githubusercontent.com/ranfdev/Notify/main/data/screenshots/1.png</image>
|
||||
<caption>Main window, welcome screen</caption>
|
||||
</screenshot>
|
||||
<screenshot>
|
||||
<image>https://raw.githubusercontent.com/ranfdev/Notify/main/data/screenshots/2.png</image>
|
||||
<caption>Main window, subscription view</caption>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<url type="homepage">https://github.com/ranfdev/Notify</url>
|
||||
<url type="bugtracker">https://github.com/ranfdev/Notify/issues</url>
|
||||
<url type="donation">https://github.com/sponsors/ranfdev</url>
|
||||
|
||||
<content_rating type="oars-1.0" />
|
||||
<releases>
|
||||
<release version="0.1.2" date="2023-11-07">
|
||||
<ul>
|
||||
<li>Introduced dialog to write advanced messages</li>
|
||||
<li>Automatic download of attached images</li>
|
||||
<li>Introduced support for action buttons in the notifications</li>
|
||||
<li>Improved performance of the message list layout</li>
|
||||
<li>Improved design for status chips</li>
|
||||
<li>Improved design for the message bar</li>
|
||||
<li>Various bug fixes</li>
|
||||
</ul>
|
||||
</release>
|
||||
<release version="0.1.1" date="2023-10-24" />
|
||||
<release version="0.1.0" date="2023-10-13" />
|
||||
</releases>
|
||||
<developer_name>ranfdev</developer_name>
|
||||
<update_contact>ranfdev@gmail.com</update_contact>
|
||||
<translation type="gettext">@gettext-package@</translation>
|
||||
<launchable type="desktop-id">@app-id@.desktop</launchable>
|
||||
</component>
|
||||
@ -10,6 +10,32 @@ blueprints = custom_target('blueprints',
|
||||
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
||||
)
|
||||
|
||||
# Appdata
|
||||
appdata_conf = configuration_data()
|
||||
appdata_conf.set('app-id', application_id)
|
||||
appdata_conf.set('gettext-package', gettext_package)
|
||||
appdata_file = i18n.merge_file(
|
||||
input: configure_file(
|
||||
input: '@0@.metainfo.xml.in.in'.format(base_id),
|
||||
output: '@BASENAME@',
|
||||
configuration: appdata_conf
|
||||
),
|
||||
output: 'metainfo.xml',
|
||||
po_dir: podir,
|
||||
install: true,
|
||||
install_dir: datadir / 'metainfo'
|
||||
)
|
||||
# Validate Appdata
|
||||
if appstream_util.found()
|
||||
test(
|
||||
'validate-appdata', appstream_util,
|
||||
args: [
|
||||
'validate', '--nonet', appdata_file.full_path()
|
||||
],
|
||||
depends: appdata_file,
|
||||
)
|
||||
endif
|
||||
|
||||
resources = gnome.compile_resources(
|
||||
'resources',
|
||||
'resources.gresource.xml',
|
||||
@ -17,5 +43,7 @@ resources = gnome.compile_resources(
|
||||
source_dir: meson.current_build_dir(),
|
||||
install: true,
|
||||
install_dir: pkgdatadir,
|
||||
dependencies: blueprints,
|
||||
dependencies: [blueprints, appdata_file],
|
||||
)
|
||||
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
<file compressed="true" preprocess="xml-stripblanks">ui/window.ui</file>
|
||||
<file compressed="true" preprocess="xml-stripblanks">ui/subscription_info_dialog.ui</file>
|
||||
<file compressed="true">style.css</file>
|
||||
|
||||
<file compressed="true">metainfo.xml</file>
|
||||
</gresource>
|
||||
<gresource prefix="/com/ranfdev/Notify/icons/16x16/status/">
|
||||
<file preprocess="xml-stripblanks" alias="dice3-symbolic.svg">../icons/dice3-symbolic.svg</file>
|
||||
|
||||
Reference in New Issue
Block a user