]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
CMake: install .desktop file and icon
authortobtoht <tob@featherwallet.org>
Thu, 20 Apr 2023 12:59:44 +0000 (14:59 +0200)
committertobtoht <tob@featherwallet.org>
Thu, 20 Apr 2023 12:59:44 +0000 (14:59 +0200)
src/CMakeLists.txt
src/assets/feather.desktop

index 242116386f916e0d9935f4c92b2a4aaf71e5bf16..bd129b3e9db5d8f6952194fc192c4d73bc5b6d10 100644 (file)
@@ -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
index f8641e3ab8cb9d79951b755afd404eb9ae5df9d0..42bdb9cc781a7f9809614928f9d8583c04ed9298 100644 (file)
@@ -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