]> git.jsancho.org Git - lugaru.git/commitdiff
Add and install desktop file and icon
authorRémi Verschelde <rverschelde@gmail.com>
Wed, 7 Dec 2016 20:42:17 +0000 (21:42 +0100)
committerRémi Verschelde <rverschelde@gmail.com>
Wed, 7 Dec 2016 20:45:40 +0000 (21:45 +0100)
Already added the install instruction for the appdata file for @Conan_Kudo.
Fixes most of #27.

CMakeLists.txt
Dist/lugaru.desktop [new file with mode: 0644]

index 5f1db0f6ec5c3f8c9a6ce9fc29b982dbdccf7426..7a1055e20f237cb09e6cf3aa4bd3afe754501201 100644 (file)
@@ -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 (file)
index 0000000..ad224ec
--- /dev/null
@@ -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;