Add AppStream file for Dolphin integration

This commit is contained in:
Martchus 2022-10-13 19:35:30 +02:00
parent b0e6c6d574
commit 4c20ecb131
3 changed files with 31 additions and 1 deletions

View File

@ -15,7 +15,7 @@ set(TS_FILES translations/${META_PROJECT_NAME}_zh_CN.ts translations/${META_PROJ
translations/${META_PROJECT_NAME}_de_DE.ts translations/${META_PROJECT_NAME}_en_US.ts)
# find c++utilities
find_package(${PACKAGE_NAMESPACE_PREFIX}c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.0.0 REQUIRED)
find_package(${PACKAGE_NAMESPACE_PREFIX}c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.20.0 REQUIRED)
list(APPEND CMAKE_MODULE_PATH ${CPP_UTILITIES_MODULE_DIRS})
# find qtutilities
@ -40,6 +40,7 @@ include(QtConfig)
include(WindowsResources)
include(LibraryTarget)
include(ConfigHeader)
include(AppUtilities)
# configure and install desktop file
include(TemplateFinder)
@ -50,3 +51,6 @@ install(
FILES "${DESKTOP_TARGET_FILE}"
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/kservices5"
COMPONENT desktop)
# install appstream file
add_appstream_file()

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="addon">
<id>@META_PROJECT_RDNS@</id>
<metadata_license>MIT</metadata_license>
<project_license>@META_PROJECT_LICENSE@</project_license>
<extends>org.kde.dolphin.desktop</extends>
<name>@META_APP_NAME@</name>
<summary>@META_APP_DESCRIPTION@</summary>
@META_APP_APPDATA_BODY@
<url type="homepage">@META_APP_URL@</url>
<url type="bugtracker">@META_APP_BUGTRACKER_URL@</url>
<developer_name>@META_APP_AUTHOR@</developer_name>
<releases>
<release version="@META_APP_VERSION@" date="@META_RELEASE_DATE@"/>
</releases>
</component>

View File

@ -0,0 +1,10 @@
<description>
<p>Allows checking a folder's status from Dolphin and triggering rescans/pause/resume.</p>
</description>
<screenshots>
<screenshot type="default">
<caption>Syncthing menu in Dolphin</caption>
<image>@META_APP_URL_RAW@/fileitemactionplugin/resources/screenshots/dolphin.png</image>
</screenshot>
</screenshots>
<content_rating/>