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 + +