From 16ccec0d122d0c4a9556622581dbe86392fc0049 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Mon, 14 Sep 2020 18:34:30 +0800 Subject: [PATCH] feat: add basic support for AppStream --- CMakeLists.txt | 6 ++++++ .../net.blumia.pineapple-pictures.appdata.xml | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 dist/appstream/net.blumia.pineapple-pictures.appdata.xml diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b19e90..c385115 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -152,6 +152,12 @@ elseif (UNIX) FILES pineapple-pictures.desktop DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications" ) + + # install app metadata file for appstream (and some other stuff using this metadata like snapcraft) + install ( + FILES dist/appstream/net.blumia.pineapple-pictures.appdata.xml + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo" + ) endif() set (INSTALL_TARGETS_DEFAULT_ARGS diff --git a/dist/appstream/net.blumia.pineapple-pictures.appdata.xml b/dist/appstream/net.blumia.pineapple-pictures.appdata.xml new file mode 100644 index 0000000..4382d81 --- /dev/null +++ b/dist/appstream/net.blumia.pineapple-pictures.appdata.xml @@ -0,0 +1,19 @@ + + + net.blumia.pineapple-pictures + CC0-1.0 + GPL-3.0+ + Pineapple Pictures + 菠萝看图 + 图像查看器 + +

Pineapple Pictures is a lightweight image viewer

+

菠萝看图是一个轻量级的图像查看器

+
+ https://github.com/BLumia/pineapple-pictures + https://github.com/BLumia/pineapple-pictures/issues + https://www.kde.org/community/donations/?app=$YOURBINARYNAME + + ppic + +