X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=contrib%2Fmacdeploy%2Fmacdeployqtplus;h=e159f9bbc349740826ecd809f269a95b9b1f314c;hb=3176e0f244d929669aa3e1d81e0787d82d9150d3;hp=914edb76f8081a38c6caa89f8a37f2a7f2718d70;hpb=f118b5fc5d4376bb314687d8d272e39bb95f8291;p=novacoin.git 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):