Set installbuilder project.version dynamically from qmake

Instead of maintaining the version number in project.xml, pass it to
installbuilder from qmake project.

refs #902
This commit is contained in:
Roland Winklmeier
2017-03-09 15:29:04 +01:00
committed by Mathew Sutcliffe
parent dbcde5bcf5
commit b6fb532f3a
2 changed files with 3 additions and 2 deletions

View File

@@ -308,7 +308,8 @@ bitrock_builder_bin = $$(BITROCK_BUILDER)
}
create_installer.commands = $${bitrock_builder_bin} build $${bitrock_project} $${INSTALLER_PLATFORM} \
--setvars project.outputDirectory=$$shell_path($${PREFIX}/..) \
project.installerFilename=$${INSTALLER_BASENAME}.$${INSTALLER_EXT}
project.installerFilename=$${INSTALLER_BASENAME}.$${INSTALLER_EXT} \
project.version=$${BLACK_VERSION}
QMAKE_EXTRA_TARGETS += create_installer
}

View File

@@ -1,7 +1,7 @@
<project>
<shortName>swift</shortName>
<fullName>swift</fullName>
<version>0.7.0</version>
<!-- <version>0.7.0</version> -->
<readmeFile>../../dist/bin/README.md</readmeFile>
<licenseFile>../../dist/bin/LICENSE</licenseFile>
<leftImage>../images/leftimage.png</leftImage>