diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2013-11-27 20:14:59 (GMT) |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-28 01:54:26 (GMT) |
commit | 93b819b448d565e293f7564c8a3de86424411101 (patch) | |
tree | 143c0989bb14492effa39756e95db721ad036a2d | |
parent | 515617e55be9a7bfa738a9c32ef8b19065de37d4 (diff) | |
download | Qt-93b819b448d565e293f7564c8a3de86424411101.zip Qt-93b819b448d565e293f7564c8a3de86424411101.tar.gz Qt-93b819b448d565e293f7564c8a3de86424411101.tar.bz2 |
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>
-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 a0cebad..b3cbe8d 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; |