feat: add basic support for AppStream

This commit is contained in:
Gary Wang
2020-09-14 18:34:30 +08:00
parent e2fb1813f1
commit 16ccec0d12
2 changed files with 25 additions and 0 deletions

View File

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