diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2013-11-27 12:14:59 -0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-28 02:54:26 +0100 |
commit | 93b819b448d565e293f7564c8a3de86424411101 (patch) | |
tree | 143c0989bb14492effa39756e95db721ad036a2d /tools | |
parent | 515617e55be9a7bfa738a9c32ef8b19065de37d4 (diff) | |
download | qt4-tools-93b819b448d565e293f7564c8a3de86424411101.tar.gz |
Keep the copied files as writable
Mac's strip tool doesn't work if the file is read-only. Some of the
libraries we copy might be read-only (like those installed by
HomeBrew) and that would cause stripping to fail.
(cherry-picked from qttools commit f82499e6508975188b38cb396280c901e4274cd7)
Change-Id: Ie8caa853a26794ec97ec84354d9f7bb142cce993
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/macdeployqt/shared/shared.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/macdeployqt/shared/shared.cpp b/tools/macdeployqt/shared/shared.cpp index a0cebadf50..b3cbe8d71c 100644 --- a/tools/macdeployqt/shared/shared.cpp +++ b/tools/macdeployqt/shared/shared.cpp @@ -91,6 +91,8 @@ inline QDebug operator<<(QDebug debug, const ApplicationBundleInfo &info) bool copyFilePrintStatus(const QString &from, const QString &to) { if (QFile::copy(from, to)) { + QFile dest(to); + dest.setPermissions(dest.permissions() | QFile::WriteOwner | QFile::WriteUser); LogNormal() << " copied:" << from; LogNormal() << " to" << to; return true; |