From: Gavin Andresen Date: Mon, 6 Feb 2012 14:32:35 +0000 (-0500) Subject: Mac deploy tool: make dylibs writeable when copying into app bundle, so they can... X-Git-Tag: v0.4.0-unstable~129^2~239 X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=0104e36d4ba32c02e821986dcacdb2ede1839c6c;hp=f118b5fc5d4376bb314687d8d272e39bb95f8291;p=novacoin.git Mac deploy tool: make dylibs writeable when copying into app bundle, so they can be stripped/nametool'ed --- diff --git a/contrib/macdeploy/macdeployqtplus b/contrib/macdeploy/macdeployqtplus index 914edb7..e159f9b 100755 --- a/contrib/macdeploy/macdeployqtplus +++ b/contrib/macdeploy/macdeployqtplus @@ -17,7 +17,7 @@ # along with this program. If not, see . # -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):