Commit de022e4d authored by Gavin Andresen's avatar Gavin Andresen
Browse files

Mac deploy tool: make dylibs writeable when copying into app bundle, so they...

Mac deploy tool: make dylibs writeable when copying into app bundle, so they can be stripped/nametool'ed
parent 1c00524f
Showing with 6 additions and 2 deletions
+6 -2
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment