From dcf6c862ef885a9fe02dddd82cfd8e7228e7cacb Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 7 Dec 2016 21:42:17 +0100 Subject: [PATCH] Add and install desktop file and icon Already added the install instruction for the appdata file for @Conan_Kudo. Fixes most of #27. --- CMakeLists.txt | 3 +++ Dist/lugaru.desktop | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 Dist/lugaru.desktop diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f1db0f..7a1055e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -254,6 +254,9 @@ if(LINUX) install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lugaru DESTINATION ${CMAKE_INSTALL_BINDIR}) # Trailing '/' is significant, it installs and _renames_ Data/ as the destination folder install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data/ DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}) + #install(FILES ${CMAKE_SOURCE_DIR}/Dist/lugaru.appdata.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/appdata) + install(FILES ${CMAKE_SOURCE_DIR}/Dist/lugaru.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications) + install(FILES ${CMAKE_SOURCE_DIR}/Dist/lugaru.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/128x128/apps) else(SYSTEM_INSTALL) message(WARNING "You are installing Lugaru without having enabled the SYSTEM_INSTALL option. It will default to looking for the data in the 'Data' directory next to the binary.") install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lugaru DESTINATION ${CMAKE_INSTALL_PREFIX}) diff --git a/Dist/lugaru.desktop b/Dist/lugaru.desktop new file mode 100644 index 0000000..ad224ec --- /dev/null +++ b/Dist/lugaru.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Lugaru HD +GenericName=Fighting game +Comment=Third person ninja rabbit fighting game +Exec=lugaru +Icon=lugaru +Terminal=false +Type=Application +Categories=Game;ActionGame; -- 2.39.2