summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2013-08-27 14:35:51 +0200
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2013-08-27 15:36:59 +0200
commite80747a8a41ab01b0e891a5ee2c894b3ac3c50fd (patch)
tree2810cc670db055d6f05d431d873a12d74751f009 /dist
parente55e3a800f2172ed9d024a11b4d426dca706f506 (diff)
downloadqtenginio-e80747a8a41ab01b0e891a5ee2c894b3ac3c50fd.tar.gz
Improve create_installer.py
Also append compiler information to installer package name, and create a dmg disk image of the installer on Mac. Change-Id: I03a9eaf6cba4754f0c903b3f6eeaf4ad89466d7d Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
Diffstat (limited to 'dist')
-rw-r--r--dist/create_installer.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/dist/create_installer.py b/dist/create_installer.py
index d7e3e2a..9a520cf 100644
--- a/dist/create_installer.py
+++ b/dist/create_installer.py
@@ -16,6 +16,7 @@ import sys
# Qt
qmake = "qmake"
+qmake_spec = subprocess.check_output([qmake, "-query", "QMAKE_SPEC"]).strip()
make = "make"
if sys.platform == "win32":
@@ -131,7 +132,10 @@ os.mkdir("packages/com.digia.enginio/data/mkspecs")
os.mkdir(modulesPath)
shutil.copyfile("build/mkspecs/modules-inst/qt_lib_enginio.pri", modulesPath + "/qt_lib_enginio.pri")
+pkgname = "QtEnginioInstaller_" + VERSION + '-' + qmake_spec
+subprocess.check_call([binarycreator, "--offline-only", "-c", "config" + os.sep + "config.xml", "-p", "packages", pkgname])
-subprocess.check_call([binarycreator, "--offline-only", "-c", "config" + os.sep + "config.xml", "-p", "packages", "EnginioInstaller_" + VERSION])
+if sys.platform == "darwin":
+ subprocess.check_call(["hdiutil", "create", pkgname + ".dmg", "-srcfolder", pkgname + ".app"])
print("Installer created.")