From: tobtoht Date: Thu, 20 Apr 2023 12:59:44 +0000 (+0200) Subject: CMake: install .desktop file and icon X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=170feaa1b100cfbe59c50046a63b7974910b7596;p=gamesguru%2Ffeather.git CMake: install .desktop file and icon --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 24211638..bd129b3e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -316,6 +316,17 @@ if(STACK_TRACE AND CMAKE_C_COMPILER_ID STREQUAL "GNU") target_link_libraries(feather -rdynamic) endif() -install(TARGETS feather - DESTINATION ${CMAKE_INSTALL_PREFIX} -) +if(DEPENDS) + install(TARGETS feather + DESTINATION ${CMAKE_INSTALL_PREFIX} + ) +else() + install(TARGETS feather + DESTINATION ${CMAKE_INSTALL_PREFIX}/bin + ) + + if (UNIX AND NOT APPLE) + install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/feather.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications) + install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/images/appicons/256x256.png DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/256x256/apps RENAME "feather.png") + endif() +endif() \ No newline at end of file diff --git a/src/assets/feather.desktop b/src/assets/feather.desktop index f8641e3a..42bdb9cc 100644 --- a/src/assets/feather.desktop +++ b/src/assets/feather.desktop @@ -1,12 +1,11 @@ [Desktop Entry] Type=Application -Name=Feather +Name=Feather Wallet GenericName=Monero Wallet Comment=A free Monero desktop wallet Icon=feather Exec=feather Terminal=false -MimeType=x-scheme-handler/monero; Categories=Network; StartupNotify=false StartupWMClass=feather \ No newline at end of file