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) if(UNIX AND NOT APPLE)
install(FILES "img/cutter.svg" 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" install(FILES "re.rizin.cutter.desktop"
DESTINATION "share/applications" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
COMPONENT Devel) install(FILES "re.rizin.cutter.appdata.xml"
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo")
endif() endif()

View File

@ -1,6 +1,8 @@
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application
Name=Cutter Name=Cutter
GenericName=Reverse Engineering Platform
Comment=Reverse Engineering Platform powered by rizin
Exec=cutter Exec=cutter
Icon=cutter Icon=cutter
Categories=Development; Categories=Development;