diff --git a/leocad.pro b/leocad.pro index 762883c8..732ce11f 100644 --- a/leocad.pro +++ b/leocad.pro @@ -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 diff --git a/tools/setup/leocad.appdata.xml b/tools/setup/leocad.appdata.xml new file mode 100644 index 00000000..249db169 --- /dev/null +++ b/tools/setup/leocad.appdata.xml @@ -0,0 +1,21 @@ + + + leocad + GPL-2.0 + GPL-2.0 + LeoCAD + Design virtual models you can build with LEGO bricks + +

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.

+
+ leocad.desktop + https://leocad.org/ + + + https://www.leocad.org/towerbridge.png + + + + leocad.desktop + +
\ No newline at end of file