Added appdata.xml.

This commit is contained in:
Leonardo Zide 2019-05-11 12:37:50 -07:00
parent 2e5494c0df
commit edc2d70cb0
2 changed files with 26 additions and 2 deletions

View file

@ -104,6 +104,7 @@ unix:!macx {
isEmpty(DESKTOP_DIR):DESKTOP_DIR = $$INSTALL_PREFIX/share/applications
isEmpty(MIME_DIR):MIME_DIR = $$INSTALL_PREFIX/share/mime/packages
isEmpty(MIME_ICON_DIR):MIME_ICON_DIR = $$INSTALL_PREFIX/share/icons/hicolor/scalable/mimetypes
isEmpty(APPDATA_DIR):ICON_DIR = $$INSTALL_PREFIX/share/metainfo
target.path = $$BIN_DIR
docs.path = $$DOCS_DIR
@ -118,8 +119,10 @@ unix:!macx {
mime.files = qt/leocad.xml
mime_icon.path = $$MIME_ICON_DIR
mime_icon.files = resources/application-vnd.leocad.svg
INSTALLS += target docs man desktop icon mime mime_icon
appdata.path = $$APPDATA_DIR
appdata.files = tools/setup/leocad.appdata.xml
INSTALLS += target docs man desktop icon mime mime_icon appdata
!isEmpty(DISABLE_UPDATE_CHECK) {
DEFINES += LC_DISABLE_UPDATE_CHECK=$$DISABLE_UPDATE_CHECK

View file

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>leocad</id>
<metadata_license>GPL-2.0</metadata_license>
<project_license>GPL-2.0</project_license>
<name>LeoCAD</name>
<summary>Design virtual models you can build with LEGO bricks</summary>
<description>
<p>LeoCAD is a CAD program for creating virtual LEGO models. It's available for free under the GNU Public License v2 and works on the Windows, Linux and macOS Operating Systems.</p>
</description>
<launchable type="desktop-id">leocad.desktop</launchable>
<url type="homepage">https://leocad.org/</url>
<screenshots>
<screenshot type="default">
<image>https://www.leocad.org/towerbridge.png</image>
</screenshot>
</screenshots>
<provides>
<id>leocad.desktop</id>
</provides>
</component>