refactor packaing dependency for flatpak

This commit is contained in:
Guobang Bi 2020-01-14 08:17:33 +08:00
parent 68e26883a9
commit 2d212cd1b6
No known key found for this signature in database
GPG Key ID: D850BE43BE29325B

View File

@ -265,12 +265,17 @@ unix {
INSTALLS += target desktop icon
}
has_metainfo {
build_flatpak {
# For Packaging
message("Configuring for packaging platform")
message(" --> Generating metainfo dependency.")
appdataXml.files += ./icons/qv2ray.appdata.xml
appdataXml.path = /usr/share/metainfo/
appdataXml.path = /app/share/metainfo/
LIBS += -L/app/lib -lgrpc++ -lprotobuf -lgrpc
INCLUDEPATH += /app/include/
desktop.path = /app/share/applications/
icon.path = /app/share/icons/hicolor/256x256/apps/
target.path = /app/bin/
INSTALLS += appdataXml
}