Install the AppStream file to the canonical location

The canonical location for AppStream XML files has been changed to
/usr/share/metainfo four years ago at least, with /usr/share/appdata
left as legacy location. It is time to switch to the right location.
This commit is contained in:
Pino Toscano
2020-04-19 13:34:37 +02:00
parent 988f200e12
commit 09b8c549b2
2 changed files with 2 additions and 2 deletions

View File

@@ -497,7 +497,7 @@ if(UNIX)
DESTINATION share/applications/)
install(FILES distri/${PROJECT_NAME}.desktop.appdata.xml
DESTINATION share/appdata/)
DESTINATION share/metainfo/)
endif(UNIX)
if(WIN32 AND MSVC)

View File

@@ -287,7 +287,7 @@ unix {
desktop.path = $$DATADIR/applications/
desktop.files = ../distri/sqlitebrowser.desktop
INSTALLS += desktop
appdata.path = $$DATADIR/appdata/
appdata.path = $$DATADIR/metainfo/
appdata.files = ../distri/sqlitebrowser.desktop.appdata.xml
INSTALLS += appdata
}