CMake: install .desktop file and icon

This commit is contained in:
tobtoht 2023-04-20 14:59:44 +02:00
parent 4e41851d81
commit 170feaa1b1
No known key found for this signature in database
GPG key ID: E45B10DD027D2472
2 changed files with 15 additions and 5 deletions

View 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()

View 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