mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 03:59:29 +00:00
CMake: install .desktop file and icon
This commit is contained in:
parent
4e41851d81
commit
170feaa1b1
2 changed files with 15 additions and 5 deletions
|
@ -316,6 +316,17 @@ if(STACK_TRACE AND CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||||
target_link_libraries(feather -rdynamic)
|
target_link_libraries(feather -rdynamic)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS feather
|
if(DEPENDS)
|
||||||
DESTINATION ${CMAKE_INSTALL_PREFIX}
|
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()
|
|
@ -1,12 +1,11 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Feather
|
Name=Feather Wallet
|
||||||
GenericName=Monero Wallet
|
GenericName=Monero Wallet
|
||||||
Comment=A free Monero desktop wallet
|
Comment=A free Monero desktop wallet
|
||||||
Icon=feather
|
Icon=feather
|
||||||
Exec=feather
|
Exec=feather
|
||||||
Terminal=false
|
Terminal=false
|
||||||
MimeType=x-scheme-handler/monero;
|
|
||||||
Categories=Network;
|
Categories=Network;
|
||||||
StartupNotify=false
|
StartupNotify=false
|
||||||
StartupWMClass=feather
|
StartupWMClass=feather
|
Loading…
Reference in a new issue