From e80747a8a41ab01b0e891a5ee2c894b3ac3c50fd Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Tue, 27 Aug 2013 14:35:51 +0200 Subject: 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 --- dist/create_installer.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'dist') 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.") -- cgit v1.2.1