Install jamulus.desktop.

Because this assumes the binary is called jamulus, and qmake doesn't
have a mechanism for string expansion, only do so if noupcasename is
set.
This commit is contained in:
Adam Sampson 2020-06-04 18:07:57 +01:00
parent 87ade59aac
commit 4c2a5d1834
1 changed files with 13 additions and 1 deletions

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