Merge pull request #2021 from ElXreno/appdata

Add AppData manifest
This commit is contained in:
Dennis Felsing 2019-12-31 10:38:10 +01:00 committed by GitHub
commit 45ad7be57c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 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()

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

@ -0,0 +1,41 @@
<?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-3.0 and Apache-2.0</project_license>
<name>DDNet</name>
<summary>
DDraceNetwork, a cooperative racing mod of Teeworlds
</summary>
<description>
<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/screenshots/1.png</image>
</screenshot>
<screenshot>
<image>https://ddnet.tw/screenshots/2.png</image>
</screenshot>
<screenshot>
<image>https://ddnet.tw/screenshots/3.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>
<url type="donation">https://www.paypal.me/ddnet</url>
<provides>
<binary>DDNet</binary>
</provides>
</component>