1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(install): rename .desktop and .appdata.xml

The xdg-desktop specification strongly recommends to use a reverse
domain name, so follow that.
This commit is contained in:
sudden6 2018-05-11 20:19:41 +02:00
parent 4acf884fb9
commit 8b4240776c
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
3 changed files with 7 additions and 4 deletions

View File

@ -32,9 +32,11 @@ if(APPLE)
" COMPONENT Runtime " COMPONENT Runtime
) )
else() else()
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION "bin") include( GNUInstallDirs )
install(FILES "res/qTox.appdata.xml" DESTINATION "share/metainfo") # follow the xdg-desktop specification
install(FILES "qtox.desktop" DESTINATION "share/applications") install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
install(FILES "res/io.github.qtox.qTox.appdata.xml" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/metainfo")
install(FILES "io.github.qtox.qTox.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications")
# Install application icons according to the XDG spec # Install application icons according to the XDG spec
set(ICON_SIZES 14 16 22 24 32 36 48 64 72 96 128 192 256 512) set(ICON_SIZES 14 16 22 24 32 36 48 64 72 96 128 192 256 512)

View File

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Copyleft 2016 SkyzohKey <skyzohkey@framasphere.org> --> <!-- Copyleft 2016 SkyzohKey <skyzohkey@framasphere.org> -->
<component type="desktop"> <component type="desktop">
<id>qtox.desktop</id> <id>io.github.qtox.qTox</id>
<launchable type="desktop-id">io.github.qtox.qTox.desktop</launchable>
<metadata_license>CC-BY-SA-3.0</metadata_license> <metadata_license>CC-BY-SA-3.0</metadata_license>
<project_license>GPL-3.0</project_license> <project_license>GPL-3.0</project_license>
<name>qTox</name> <name>qTox</name>