Skip to content

Commit

Permalink
Added metainfo file to the installation.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
xvitaly committed May 23, 2024
1 parent 8251f7e commit e0d1c80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
2 changes: 2 additions & 0 deletions src/re.rizin.cutter.desktop
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit e0d1c80

Please sign in to comment.