Commits

Ronald Oussoren committed 03de412

Make sure that the additional executables have the right permissions

Without this patch we'd sometimes end up with binaries that don't
have execute permissions.

Comments (0)

Files changed (1)

py2app/build_app.py

 import pkg_resources
 
 from py2app.apptemplate.setup import main as script_executable
-from py2app.util import mergecopy
+from py2app.util import mergecopy, make_exec
 
 
 try:
                 src_fn = script_executable(arch=self.arch)
                 tgt_fn = os.path.join(target.appdir, 'Contents', 'MacOS', fn)
                 mergecopy(src_fn, tgt_fn)
+                make_exec(tgt_fn)
 
     def collect_recipedict(self):
         return dict(iterRecipes())