add .desktop and ico installation

This commit is contained in:
Ryozuki 2019-05-23 16:28:25 +02:00
parent dc4111da12
commit bd1f6be080
No known key found for this signature in database
GPG key ID: 848FCC08E5B89681
8 changed files with 15 additions and 0 deletions

View file

@ -1415,6 +1415,10 @@ if(NOT DEV)
install(TARGETS ${TARGET_CLIENT} DESTINATION bin COMPONENT client)
install(TARGETS ${TARGET_SERVER} DESTINATION bin COMPONENT server)
install(TARGETS ${TARGETS_TOOLS} DESTINATION lib/ddnet COMPONENT tools)
install(FILES other/ddnet.desktop DESTINATION share/applications COMPONENT client)
foreach(SIZE 16 32 48 128 256 512)
install(FILES other/icons/DDNet_${SIZE}x${SIZE}x32.png DESTINATION share/icons/hicolor/${SIZE}x${SIZE}/apps RENAME ddnet.png COMPONENT client)
endforeach()
endif()
if(DEV)

11
other/ddnet.desktop Normal file
View file

@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=DDNet
GenericName=Platform Game
Exec=DDNet %u
Icon=ddnet
Terminal=false
Keywords=game;multiplayer;
Categories=Game;ArcadeGame;
MimeType=x-scheme-handler/ddnet;
Comment=Launch DDNet

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB