From 4c2a5d1834001d519a3658969e2a35cbcec0d2f4 Mon Sep 17 00:00:00 2001 From: Adam Sampson Date: Thu, 4 Jun 2020 18:07:57 +0100 Subject: [PATCH] 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. --- Jamulus.pro | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Jamulus.pro b/Jamulus.pro index 345b1ef6..97f5b6f2 100755 --- a/Jamulus.pro +++ b/Jamulus.pro @@ -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