diff options
| author | Gavin Andresen <[email protected]> | 2012-02-06 09:32:35 -0500 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-02-06 09:33:13 -0500 |
| commit | 0104e36d4ba32c02e821986dcacdb2ede1839c6c (patch) | |
| tree | 59baf84d1c6afa0e1c63af6b62998e70060a30e4 /contrib/macdeploy/macdeployqtplus | |
| parent | miniupnpc Porfile removed; new and improved macdeployqtplus (diff) | |
| download | discoin-0104e36d4ba32c02e821986dcacdb2ede1839c6c.tar.xz discoin-0104e36d4ba32c02e821986dcacdb2ede1839c6c.zip | |
Mac deploy tool: make dylibs writeable when copying into app bundle, so they can be stripped/nametool'ed
Diffstat (limited to 'contrib/macdeploy/macdeployqtplus')
| -rwxr-xr-x | contrib/macdeploy/macdeployqtplus | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/macdeploy/macdeployqtplus b/contrib/macdeploy/macdeployqtplus index 914edb76f..e159f9bbc 100755 --- a/contrib/macdeploy/macdeployqtplus +++ b/contrib/macdeploy/macdeployqtplus @@ -17,7 +17,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # -import subprocess, sys, re, os, shutil, os.path +import subprocess, sys, re, os, shutil, stat, os.path from time import sleep from argparse import ArgumentParser @@ -256,7 +256,11 @@ def copyFramework(framework, path, verbose): if verbose >= 3: print "Copied:", fromPath print " to:", toPath - + + permissions = os.stat(toPath) + if not permissions.st_mode & stat.S_IWRITE: + os.chmod(toPath, permissions.st_mode | stat.S_IWRITE) + if not framework.isDylib(): # Copy resources for real frameworks fromResourcesDir = framework.sourceResourcesDirectory if os.path.exists(fromResourcesDir): |