diff --git a/.gitignore b/.gitignore index 6057690..e1ece4a 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,6 @@ Makefile* # CMake CMakeLists.txt.user + +# Linux appdata +/assets/freedesktop/org.zealdocs.Zeal.appdata.xml diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c60559..15216ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.5.1) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") project(Zeal VERSION 0.6.0) +set(RELEASE_DATE 2018-02-18) # Project information. if(APPLE) diff --git a/assets/freedesktop/CMakeLists.txt b/assets/freedesktop/CMakeLists.txt index 0e566ef..6e19e09 100644 --- a/assets/freedesktop/CMakeLists.txt +++ b/assets/freedesktop/CMakeLists.txt @@ -12,8 +12,16 @@ if(UNIX AND NOT APPLE) DESTINATION ${KDE_INSTALL_ICONDIR} ) - # TODO: Generate via zeal.desktop.in. - install(FILES "zeal.desktop" + configure_file( + org.zealdocs.Zeal.appdata.xml.in + org.zealdocs.Zeal.appdata.xml + ) + + install(FILES ${CMAKE_BINARY_DIR}/assets/freedesktop/org.zealdocs.Zeal.appdata.xml + DESTINATION ${KDE_INSTALL_METAINFODIR} + ) + + install(FILES "org.zealdocs.Zeal.desktop" DESTINATION ${KDE_INSTALL_APPDIR} ) endif() diff --git a/assets/freedesktop/org.zealdocs.Zeal.appdata.xml.in b/assets/freedesktop/org.zealdocs.Zeal.appdata.xml.in new file mode 100644 index 0000000..bec3b7a --- /dev/null +++ b/assets/freedesktop/org.zealdocs.Zeal.appdata.xml.in @@ -0,0 +1,55 @@ + + + org.zealdocs.Zeal.desktop + Zeal + CC0-1.0 + GPL-3.0-only + Documentation browser + +

Zeal is a simple offline documentation browser inspired by Dash.

+
+ https://zealdocs.org/ + https://github.com/zealdocs/zeal/issues + https://zealdocs.org/usage.html + + + https://i.imgur.com/qBkZduS.png + + + + zeal.desktop + + + + + zeal@zealdocs.org + + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + none + +
diff --git a/assets/freedesktop/zeal.desktop b/assets/freedesktop/org.zealdocs.Zeal.desktop similarity index 100% rename from assets/freedesktop/zeal.desktop rename to assets/freedesktop/org.zealdocs.Zeal.desktop