install.patch 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. From 87a3922cd5e9fe7a6f42f7b04c36a82798c0d8c8 Mon Sep 17 00:00:00 2001
  2. From: orbea <orbea@riseup.net>
  3. Date: Mon, 19 Aug 2019 15:41:34 -0700
  4. Subject: [PATCH 1/2] Add a desktop file.
  5. ---
  6. CMakeLists.txt | 6 ++++++
  7. zbom.desktop | 9 +++++++++
  8. 2 files changed, 15 insertions(+)
  9. create mode 100644 zbom.desktop
  10. diff --git a/CMakeLists.txt b/CMakeLists.txt
  11. index 6a9f7bb2..98fec905 100644
  12. --- a/CMakeLists.txt
  13. +++ b/CMakeLists.txt
  14. @@ -63,3 +63,9 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/data.solarus
  15. install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${quest_name}
  16. DESTINATION bin
  17. )
  18. +
  19. +# FreeDesktop compatible start menu launcher
  20. +if(UNIX AND NOT APPLE)
  21. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/zbom.desktop
  22. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
  23. +endif(UNIX AND NOT APPLE)
  24. diff --git a/zbom.desktop b/zbom.desktop
  25. new file mode 100644
  26. index 00000000..4cb80148
  27. --- /dev/null
  28. +++ b/zbom.desktop
  29. @@ -0,0 +1,9 @@
  30. +[Desktop Entry]
  31. +Name=Zelda: Book of Mudora
  32. +GenericName=Zelda fangame for the Solarus engine
  33. +Comment=Zelda: Book of Mudora (action rpg game)
  34. +Exec=zbom
  35. +Terminal=false
  36. +Type=Application
  37. +Icon=zbom
  38. +Categories=Game;AdventureGame;
  39. --
  40. 2.22.0
  41. From 7cfe8c127d9685067faa1b53dae5bb052365da1a Mon Sep 17 00:00:00 2001
  42. From: orbea <orbea@riseup.net>
  43. Date: Mon, 19 Aug 2019 15:45:06 -0700
  44. Subject: [PATCH 2/2] Install icons.
  45. ---
  46. CMakeLists.txt | 18 ++++++++++++++++++
  47. 1 file changed, 18 insertions(+)
  48. diff --git a/CMakeLists.txt b/CMakeLists.txt
  49. index 98fec905..5e700a30 100644
  50. --- a/CMakeLists.txt
  51. +++ b/CMakeLists.txt
  52. @@ -64,6 +64,24 @@ install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${quest_name}
  53. DESTINATION bin
  54. )
  55. +# FreeDesktop compatible icons
  56. +if(UNIX AND NOT APPLE)
  57. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_16.png
  58. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/16x16/apps RENAME zbom.png)
  59. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_24.png
  60. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/24x24/apps RENAME zbom.png)
  61. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_32.png
  62. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/32x32/apps RENAME zbom.png)
  63. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_48.png
  64. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/48x48/apps RENAME zbom.png)
  65. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_64.png
  66. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/64x64/apps RENAME zbom.png)
  67. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_128.png
  68. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/128x128/apps RENAME zbom.png)
  69. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/logo@2x.png
  70. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pixmaps RENAME zbom.png)
  71. +endif(UNIX AND NOT APPLE)
  72. +
  73. # FreeDesktop compatible start menu launcher
  74. if(UNIX AND NOT APPLE)
  75. install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/zbom.desktop
  76. --
  77. 2.22.0