From: RĂ©mi Verschelde Date: Wed, 7 Dec 2016 20:42:17 +0000 (+0100) Subject: Add and install desktop file and icon X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=dcf6c862ef885a9fe02dddd82cfd8e7228e7cacb;p=lugaru.git Add and install desktop file and icon Already added the install instruction for the appdata file for @Conan_Kudo. Fixes most of #27. --- 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;