appdata: Improve appdata for AppStream 1.0

- Add the `<developer><name>` tag
- Mark the `<developer_name>` tag as deprecated
- Mark the developer name as untranslatable
- Remove unreachable donation URL
- Remove one of Purism tag to pass appstreamcli validation
- Fix release descriptions
- Use appstreamcli to validate appdata
This commit is contained in:
Sabri Ünal 2024-01-01 11:29:43 +03:00 committed by Bilal Elmoussaoui
parent d84f9965e2
commit a13e97be4a
2 changed files with 79 additions and 60 deletions

View file

@ -44,32 +44,38 @@
<url type="homepage">https://gitlab.gnome.org/World/Authenticator</url> <url type="homepage">https://gitlab.gnome.org/World/Authenticator</url>
<url type="bugtracker">https://gitlab.gnome.org/World/Authenticator/issues</url> <url type="bugtracker">https://gitlab.gnome.org/World/Authenticator/issues</url>
<url type="translate">https://l10n.gnome.org/module/authenticator/</url> <url type="translate">https://l10n.gnome.org/module/authenticator/</url>
<url type="donation">https://liberapay.com/bielmoussaoui</url>
<url type="vcs-browser">https://gitlab.gnome.org/World/Authenticator</url> <url type="vcs-browser">https://gitlab.gnome.org/World/Authenticator</url>
<content_rating type="oars-1.1" /> <content_rating type="oars-1.1" />
<releases> <releases>
<release version="4.4.0" date="2023-10-13"> <release version="4.4.0" date="2023-10-13">
<description>
<ul> <ul>
<li>Display an error dialog when the application fails to use the keyring</li> <li>Display an error dialog when the application fails to use the keyring</li>
<li>Use new Adwaita widgets</li> <li>Use new Adwaita widgets</li>
<li>Camera improvements thanks to Aperture, the library used by Snapshot</li> <li>Camera improvements thanks to Aperture, the library used by Snapshot</li>
</ul> </ul>
</description>
</release> </release>
<release version="4.3.1" date="2023-04-22"> <release version="4.3.1" date="2023-04-22">
<description>
<ul> <ul>
<li>Add support for rotated camera</li> <li>Add support for rotated camera</li>
<li>Prefer front camera when possible</li> <li>Prefer front camera when possible</li>
</ul> </ul>
</description>
</release> </release>
<release version="4.3.0" date="2023-04-20"> <release version="4.3.0" date="2023-04-20">
<description>
<ul> <ul>
<li>Fix compatibility with https://2fas.com/check-token/</li> <li>Fix compatibility with 2fas.com/check-token/</li>
<li>backup: Add FreeOTP+ JSON format support</li> <li>backup: Add FreeOTP+ JSON format support</li>
<li>Allow importing from an image file containing a QR code</li> <li>Allow importing from an image file containing a QR code</li>
<li>Add tests for all the supported backup formats</li> <li>Add tests for all the supported backup formats</li>
</ul> </ul>
</description>
</release> </release>
<release version="4.2.0" date="2022-12-27"> <release version="4.2.0" date="2022-12-27">
<description>
<ul> <ul>
<li>Mutli Camera support when scanning a QR code</li> <li>Mutli Camera support when scanning a QR code</li>
<li>Camera: Use GL when possible</li> <li>Camera: Use GL when possible</li>
@ -79,12 +85,15 @@
<li>Update providers list</li> <li>Update providers list</li>
<li>Use new libadwaita widgets</li> <li>Use new libadwaita widgets</li>
</ul> </ul>
</description>
</release> </release>
<release version="4.1.6" date="2022-06-10"> <release version="4.1.6" date="2022-06-10">
<description>
<ul> <ul>
<li>Add Google Autenticator restore support</li> <li>Add Google Autenticator restore support</li>
<li>Disable Inspector on release builds</li> <li>Disable Inspector on release builds</li>
</ul> </ul>
</description>
</release> </release>
<release version="4.1.5" date="2022-06-06"> <release version="4.1.5" date="2022-06-06">
<description>Fix a crash when loading an account token</description> <description>Fix a crash when loading an account token</description>
@ -96,7 +105,8 @@
<description>Fallback to host keyring in case the portal is not available</description> <description>Fallback to host keyring in case the portal is not available</description>
</release> </release>
<release version="4.1.2" date="2022-05-29"> <release version="4.1.2" date="2022-05-29">
<description>Bugfixes release</description> <description>
<p>Bugfixes release</p>
<ul> <ul>
<li>Fix a failure when importing from andOTP</li> <li>Fix a failure when importing from andOTP</li>
<li>Fix importing from Aegis if the database was encrypted with biometrics</li> <li>Fix importing from Aegis if the database was encrypted with biometrics</li>
@ -104,9 +114,11 @@
<li>Fix QR code scanning from a screenshot</li> <li>Fix QR code scanning from a screenshot</li>
<li>Translations updates and other bugfixes</li> <li>Translations updates and other bugfixes</li>
</ul> </ul>
</description>
</release> </release>
<release version="4.1.1" date="2022-04-22"> <release version="4.1.1" date="2022-04-22">
<description>Bugfixes release</description> <description>
<p>Bugfixes release</p>
<ul> <ul>
<li>Restore the copy button</li> <li>Restore the copy button</li>
<li>Add feedback when copying generated codes</li> <li>Add feedback when copying generated codes</li>
@ -115,9 +127,11 @@
<li>Fix Aegis backup restore if generated from a phone with a biometric key</li> <li>Fix Aegis backup restore if generated from a phone with a biometric key</li>
<li>Fixes a crash</li> <li>Fixes a crash</li>
</ul> </ul>
</description>
</release> </release>
<release version="4.1.0" date="2022-04-19"> <release version="4.1.0" date="2022-04-19">
<description>Encrypted backups are finally here!</description> <description>
<p>Encrypted backups are finally here!</p>
<ul> <ul>
<li>Port to GTK 4</li> <li>Port to GTK 4</li>
<li>Encrypted backup support</li> <li>Encrypted backup support</li>
@ -129,6 +143,7 @@
<li>Translations updates</li> <li>Translations updates</li>
<li>Updated providers database</li> <li>Updated providers database</li>
</ul> </ul>
</description>
</release> </release>
<release version="4.0.3" date="2021-03-26"> <release version="4.0.3" date="2021-03-26">
<description> <description>
@ -301,12 +316,15 @@
<provides> <provides>
<id>com.github.bilelmoussaoui.Authenticator</id> <id>com.github.bilelmoussaoui.Authenticator</id>
</provides> </provides>
<developer_name>Bilal Elmoussaoui</developer_name> <!-- developer_name tag deprecated with Appstream 1.0 -->
<developer_name translatable="no">Bilal Elmoussaoui</developer_name>
<developer id="gnome.org">
<name translatable="no">Bilal Elmoussaoui</name>
</developer>
<update_contact>bilal.elmoussaoui@gnome.org</update_contact> <update_contact>bilal.elmoussaoui@gnome.org</update_contact>
<translation type="gettext">@gettext-package@</translation> <translation type="gettext">@gettext-package@</translation>
<launchable type="desktop-id">@app-id@.desktop</launchable> <launchable type="desktop-id">@app-id@.desktop</launchable>
<custom> <custom>
<value key="Purism::form_factor">workstation</value>
<value key="Purism::form_factor">mobile</value> <value key="Purism::form_factor">mobile</value>
</custom> </custom>
</component> </component>

View file

@ -69,12 +69,13 @@ metainfo_file = i18n.merge_file(
install_dir: get_option('datadir') / 'metainfo' install_dir: get_option('datadir') / 'metainfo'
) )
# Validate metainfo File # Validate metainfo File
appstream_util = find_program('appstream-util', required: false) appstreamcli = find_program('appstreamcli', required: false)
if appstream_util.found() if appstreamcli.found()
test ( test (
'Validate metainfo file', 'Validate metainfo file',
appstream_util, appstreamcli,
args: ['validate-relax', '--nonet', metainfo_file.full_path()] args: ['validate', '--no-net', '--explain', metainfo_file],
workdir: meson.current_build_dir()
) )
endif endif