From 38c683b519aa9c233d3c8d03ed50215939c746c2 Mon Sep 17 00:00:00 2001 From: Vitaly Date: Wed, 29 May 2024 18:53:52 +0200 Subject: [PATCH] Added metainfo file to the installation. (#3346) Switched from hardcoded directory name to CMAKE_INSTALL_DATAROOTDIR use. Removed the COMPONENT option from the desktop file installation entry since the file is not a development file and is always needed. Added missing GenericName and Comment to the desktop file. --- src/CMakeLists.txt | 7 ++++--- src/re.rizin.cutter.desktop | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ad69522e..81c40220 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -618,8 +618,9 @@ endforeach() if(UNIX AND NOT APPLE) install(FILES "img/cutter.svg" - DESTINATION "share/icons/hicolor/scalable/apps/") + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/apps") install(FILES "re.rizin.cutter.desktop" - DESTINATION "share/applications" - COMPONENT Devel) + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications") + install(FILES "re.rizin.cutter.appdata.xml" + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo") endif() diff --git a/src/re.rizin.cutter.desktop b/src/re.rizin.cutter.desktop index 5f818c54..8b0b9a14 100644 --- a/src/re.rizin.cutter.desktop +++ b/src/re.rizin.cutter.desktop @@ -1,6 +1,8 @@ [Desktop Entry] Type=Application Name=Cutter +GenericName=Reverse Engineering Platform +Comment=Reverse Engineering Platform powered by rizin Exec=cutter Icon=cutter Categories=Development;