From 93b819b448d565e293f7564c8a3de86424411101 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 27 Nov 2013 12:14:59 -0800 Subject: Keep the copied files as writable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ø --- tools/macdeployqt/shared/shared.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v0.12