summaryrefslogtreecommitdiffstats
path: root/tools/macdeployqt
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-12-13 15:38:00 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-12-13 15:38:00 (GMT)
commit2362debe4e0b9e7d6ba39960a0b039370783cab4 (patch)
treea70caead3feeb23029d655655fbe0e02c803e2e6 /tools/macdeployqt
parentd5efbf00631022bc81f1a630aa386272937aa34c (diff)
downloadQt-2362debe4e0b9e7d6ba39960a0b039370783cab4.zip
Qt-2362debe4e0b9e7d6ba39960a0b039370783cab4.tar.gz
Qt-2362debe4e0b9e7d6ba39960a0b039370783cab4.tar.bz2
support app-bundles with whitespace in name
based on merge-request 960 by Robin Helgelin
Diffstat (limited to 'tools/macdeployqt')
-rw-r--r--tools/macdeployqt/shared/shared.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/macdeployqt/shared/shared.cpp b/tools/macdeployqt/shared/shared.cpp
index c7d23c0..d974f5d 100644
--- a/tools/macdeployqt/shared/shared.cpp
+++ b/tools/macdeployqt/shared/shared.cpp
@@ -574,9 +574,13 @@ void createDiskImage(const QString &appBundlePath)
}
// More dmg options can be found in the hdiutil man page.
- QString options = QString("create %1.dmg -srcfolder %1.app -format UDZO -volname %1").arg(appBaseName);
+ QStringList options = QStringList()
+ << "create" << dmgName
+ << "-srcfolder" << appBundlePath
+ << "-format" << "UDZO"
+ << "-volname" << appBaseName;
QProcess hdutil;
- hdutil.start("hdiutil", options.split(' '));
+ hdutil.start("hdiutil", options);
hdutil.waitForFinished(-1);
}