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.
This commit is contained in:
Vitaly 2024-05-29 18:53:52 +02:00 committed by GitHub
parent 8251f7ec68
commit 38c683b519
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

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

View File

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