Copying a Mac App file
Archives Forums/MacOS X Discussion/Copying a Mac App file
| ||
If I call CopyDir to copy an .app package, it appears to work correctly. My new .app is the same same as the original, and contains the same files. However, the new copy will not run. If I open the package contents, the file "Contents/MacOS/myappname" Finder doesn't recognize this file as a Unix Executable file. What's going on here? |
| ||
In brl.mod/filesystem.bmx you could try adding a flags=FileMode(src) to start of CopyFile and a SetfileMode(dst,flags) at the end. |
| ||
This will copy files and retain permissions: system_("cp -R -p ~q"+project.path+"/"+title+".app~q ~q"+path+"/"+title+".app~q") |