Merge pull request #331 from atsampson/installdesktop

Install jamulus.desktop
This commit is contained in:
Volker Fischer 2020-06-05 10:53:51 +02:00 committed by GitHub
commit c780d82ac2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,12 +295,24 @@ win32 {
isEmpty(PREFIX) {
PREFIX = /usr/local
}
isEmpty(BINDIR) {
BINDIR = bin
}
BINDIR = $$absolute_path($$BINDIR, $$PREFIX)
INSTALLS += target
target.path = $$BINDIR
INSTALLS += target
isEmpty(APPSDIR) {
APPSDIR = share/applications
}
APPSDIR = $$absolute_path($$APPSDIR, $$PREFIX)
desktop.path = $$APPSDIR
desktop.files = distributions/jamulus.desktop
# the .desktop file assumes the binary is called jamulus
contains(CONFIG, "noupcasename") {
INSTALLS += desktop
}
}
RCC_DIR = src/res