Add AppData files

This commit is contained in:
Sean Davis 2014-07-27 19:55:15 -04:00
parent 42be0e98b9
commit e00695c3ff
5 changed files with 167 additions and 2 deletions

View File

@ -1,6 +1,7 @@
include AUTHORS COPYING mugshot.1 mugshot.desktop.in README
include bin/*
recursive-include data *.svg *.ui *.xml
exclude data/appdata/*.xml
recursive-include mugshot *.py
recursive-include mugshot_lib *.py
recursive-include po *.po *.in

View File

@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Sean Davis <smd.seandavis@gmail.com> -->
<application>
<id type="desktop">mugshot.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0+</project_license>
<name>Mugshot</name>
<_summary>Lightweight user configuration</_summary>
<description>
<_p>
Mugshot enables users to easily updates personal contact information.
With Mugshot, users are able to:
</_p>
<ul>
<_li>Set the account photo displayed at login and optionally synchronize
this photo with their Pidgin buddy icon</_li>
<_li>Set account details stored in /etc/passwd (usable with the finger
command) and optionally synchronize with their LibreOffice contact
information</_li>
</ul>
</description>
<screenshots>
<screenshot type="default" width="640" height="360">http://screenshots.smdavis.us/mugshot/mugshot.png</screenshot>
<screenshot width="640" height="360">http://screenshots.smdavis.us/mugshot/mugshot-pidgin-sync.png</screenshot>
</screenshots>
<url type="homepage">https://launchpad.net/mugshot/</url>
<url type="bugtracker">https://bugs.launchpad.net/mugshot/</url>
<url type="help">http://wiki.smdavis.us/doku.php?id=mugshot-docs</url>
<updatecontact>smd-seandavis@ubuntu.com</updatecontact>
<provides>
<binary>mugshot</binary>
</provides>
<releases>
<release version="0.2.4" timestamp="">
<description>
<_p>This stable release improves the user configuration (chfn) backend
and prevents Mugshot from locking up. Mugshot also no longer depends
on AccountsService, but can leverage it to better support some systems.
A critical bug that prevented some users from starting Mugshot was also
addressed.
</_p>
</description>
</release>
<release version="0.2.3" timestamp="">
<description>
<_p>This stable release improved AccountsService functionality and
overall usability. Users without admin rights can no longer attempt to
change their name, and initials are automatically populated when the
name is entered.
</_p>
</description>
</release>
<release version="0.2.2" timestamp="">
<description>
<_p>This stable release fixed a crash that occured when saving user
details in a non-English locale. This release also included an updated
translation template and new translations.
</_p>
</description>
</release>
<release version="0.2.1" timestamp="">
<description>
<_p>This stable release fixed several bugs related to profile image
management, introduced an improved password dialog, and transitioned to
using GLib to more reliably determine user and environment settings.
</_p>
</description>
</release>
<release version="0.2.0" timestamp="">
<description>
<_p>The first stable release introduced simplified packaging, replaced
the Help functionality with the online help documents, and transitioned
to using Python 3.
</_p>
</description>
</release>
</releases>
</application>

View File

@ -31,3 +31,6 @@ mugshot_lib/__init__.py
mugshot_lib/helpers.py
mugshot_lib/SudoDialog.py
mugshot_lib/Window.py
# XML Files
[type: gettext/xml]data/appdata/mugshot.appdata.xml.in

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-05-14 20:43-0400\n"
"POT-Creation-Date: 2014-07-27 19:46-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -193,3 +193,62 @@ msgstr ""
#: ../mugshot_lib/SudoDialog.py:121
msgid "Password:"
msgstr ""
#: ../data/appdata/mugshot.appdata.xml.in.h:1
msgid "Lightweight user configuration"
msgstr ""
#: ../data/appdata/mugshot.appdata.xml.in.h:2
msgid ""
"Mugshot enables users to easily updates personal contact information. With "
"Mugshot, users are able to:"
msgstr ""
#: ../data/appdata/mugshot.appdata.xml.in.h:3
msgid ""
"Set the account photo displayed at login and optionally synchronize this "
"photo with their Pidgin buddy icon"
msgstr ""
#: ../data/appdata/mugshot.appdata.xml.in.h:4
msgid ""
"Set account details stored in /etc/passwd (usable with the finger command) "
"and optionally synchronize with their LibreOffice contact information"
msgstr ""
#: ../data/appdata/mugshot.appdata.xml.in.h:5
msgid ""
"This stable release improves the user configuration (chfn) backend and "
"prevents Mugshot from locking up. Mugshot also no longer depends on "
"AccountsService, but can leverage it to better support some systems. A "
"critical bug that prevented some users from starting Mugshot was also "
"addressed."
msgstr ""
#: ../data/appdata/mugshot.appdata.xml.in.h:6
msgid ""
"This stable release improved AccountsService functionality and overall "
"usability. Users without admin rights can no longer attempt to change their "
"name, and initials are automatically populated when the name is entered."
msgstr ""
#: ../data/appdata/mugshot.appdata.xml.in.h:7
msgid ""
"This stable release fixed a crash that occured when saving user details in a "
"non-English locale. This release also included an updated translation "
"template and new translations."
msgstr ""
#: ../data/appdata/mugshot.appdata.xml.in.h:8
msgid ""
"This stable release fixed several bugs related to profile image management, "
"introduced an improved password dialog, and transitioned to using GLib to "
"more reliably determine user and environment settings."
msgstr ""
#: ../data/appdata/mugshot.appdata.xml.in.h:9
msgid ""
"The first stable release introduced simplified packaging, replaced the Help "
"functionality with the online help documents, and transitioned to using "
"Python 3."
msgstr ""

View File

@ -17,6 +17,7 @@
import os
import sys
import subprocess
try:
import DistUtilsExtra.auto
@ -118,6 +119,17 @@ def update_desktop_file(filename, script_path):
sys.exit(1)
def write_appdata_file(filename_in):
filename_out = filename_in.rstrip('.in')
cmd = ["intltool-merge", "-x", "-d", "po", filename_in, filename_out]
print(" ".join(cmd))
subprocess.call(cmd, shell=False)
# Update AppData with latest translations first.
write_appdata_file("data/appdata/mugshot.appdata.xml.in")
class InstallAndUpdateDataDirectory(DistUtilsExtra.auto.install_auto):
"""Command Class to install and update the directory."""
def run(self):
@ -181,6 +193,7 @@ DistUtilsExtra.auto.setup(
'to easily set profile image and user details for your '
'user profile and any supported applications.',
url='https://launchpad.net/mugshot',
data_files=[('share/man/man1', ['mugshot.1'])],
data_files=[('share/man/man1', ['mugshot.1']),
('share/appdata', ['data/appdata/mugshot.appdata.xml'])],
cmdclass={'install': InstallAndUpdateDataDirectory}
)