Added AppData manifest

This commit is contained in:
ElXreno 2019-12-31 10:00:41 +03:00
parent 5f855b11b2
commit 44adf1878d
No known key found for this signature in database
GPG key ID: 684214850DBE3423
2 changed files with 37 additions and 0 deletions

View file

@ -1420,6 +1420,7 @@ if(NOT DEV)
install(TARGETS ${TARGET_SERVER} DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT server)
install(TARGETS ${TARGETS_TOOLS} DESTINATION ${CMAKE_INSTALL_LIBDIR}/ddnet COMPONENT tools)
install(FILES other/ddnet.desktop DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications COMPONENT client)
install(FILES other/ddnet.appdata.xml DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo COMPONENT client)
foreach(SIZE 16 32 48 128 256 512)
install(FILES other/icons/DDNet_${SIZE}x${SIZE}x32.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/${SIZE}x${SIZE}/apps RENAME ddnet.png COMPONENT client)
endforeach()

36
other/ddnet.appdata.xml Normal file
View file

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>ddnet.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>CC-BY-SA and ASL 2.0</project_license>
<name>DDNet</name>
<summary>
DDraceNetwork, a cooperative racing mod of Teeworlds
</summary>
<description>
<p>
Welcome To DDraceNetwork (DDNet)!
</p><p>
DDraceNetwork is an actively maintained version of DDRace,
a Teeworlds modification with a unique cooperative gameplay.
Help each other play through custom maps with up to 64 players,
compete against the best in international tournaments, design your
own maps, or run your own server.
</p>
</description>
<screenshots>
<screenshot type="default">
<image>https://ddnet.tw/brainduck2.png</image>
</screenshot>
</screenshots>
<keywords>
<keyword>multiplayer</keyword>
<keyword>teeworlds</keyword>
<keyword>game</keyword>
</keywords>
<url type="homepage">https://ddnet.tw/</url>
<url type="bugtracker">https://github.com/ddnet/ddnet/issues</url>
<provides>
<binary>DDNet</binary>
</provides>
</component>