diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-12-13 15:38:00 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-12-13 15:38:00 (GMT) |
commit | 2362debe4e0b9e7d6ba39960a0b039370783cab4 (patch) | |
tree | a70caead3feeb23029d655655fbe0e02c803e2e6 /tools/macdeployqt | |
parent | d5efbf00631022bc81f1a630aa386272937aa34c (diff) | |
download | Qt-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.cpp | 8 |
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); } |