aboutsummaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
Diffstat (limited to 'installer')
-rw-r--r--installer/installer.pro10
1 files changed, 6 insertions, 4 deletions
diff --git a/installer/installer.pro b/installer/installer.pro
index 57cd84b..8d9171f 100644
--- a/installer/installer.pro
+++ b/installer/installer.pro
@@ -30,11 +30,13 @@ DEFINES += QT_DEPRECATED_WARNINGS
#This will create an installer for theSlate. Change this URL to a different one to change what is installed.
#Also change the branding files.
-if (!exists($$_PRO_FILE_PWD_/metadata.txt)) {
- error(Metadata file not found. Create a metadata.txt file in the same directory as installer.pro containing the URL of a metadata file.)
-}
+if (isEmpty(METADATA_URL)) {
+ if (!exists($$_PRO_FILE_PWD_/metadata.txt)) {
+ error(Metadata file not found. Create a metadata.txt file in the same directory as installer.pro containing the URL of a metadata file.)
+ }
-METADATA_URL = "$$cat($$_PRO_FILE_PWD_/metadata.txt)"
+ METADATA_URL = "$$cat($$_PRO_FILE_PWD_/metadata.txt)"
+}
message(Configuring theInstaller for metadata URL $$METADATA_URL)
DEFINES += INSTALLER_METADATA_URL=\\\"$$METADATA_URL\\\"