diff options
| author | Victor Tran <vicr12345@gmail.com> | 2018-12-19 22:56:36 +1100 |
|---|---|---|
| committer | Victor Tran <vicr12345@gmail.com> | 2018-12-19 22:56:36 +1100 |
| commit | 5a0dbb602a2abfc262ba81a80f636ba9cfbcb8c6 (patch) | |
| tree | fa6c1acaea1cbf39e8a579b62bd5cc220143bfbb /installer/installer.pro | |
| parent | 24607f8f8bd9f1162f4ae22e306e3dcb2706c771 (diff) | |
| download | theInstaller-5a0dbb602a2abfc262ba81a80f636ba9cfbcb8c6.tar.gz theInstaller-5a0dbb602a2abfc262ba81a80f636ba9cfbcb8c6.tar.bz2 theInstaller-5a0dbb602a2abfc262ba81a80f636ba9cfbcb8c6.zip | |
AppVeyor CI
Diffstat (limited to 'installer/installer.pro')
| -rw-r--r-- | installer/installer.pro | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/installer/installer.pro b/installer/installer.pro index 2ab71aa..57cd84b 100644 --- a/installer/installer.pro +++ b/installer/installer.pro @@ -29,7 +29,14 @@ 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. -DEFINES += INSTALLER_METADATA_URL=\\\"http://vicr123.com/theslate/theinstaller/installer.json\\\" + +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)" +message(Configuring theInstaller for metadata URL $$METADATA_URL) +DEFINES += INSTALLER_METADATA_URL=\\\"$$METADATA_URL\\\" SOURCES += \ main.cpp \ @@ -215,3 +222,6 @@ win32 { RESOURCES += \ resources.qrc +DISTFILES += \ + metadata.txt + |
