I've encountered this problem before (with no solution so far), and I encountered it again.
I'm creating some kind of generator that creates some kind of package and has to include an executable to run it in the process.
In Windows it's easy, just copy all contents of such a file into the file the user will need and make sure it ends on .exe
On Mac it's a little complicated. I'm already aware of the directory structure Mac OS uses for its .app "files" and that's not the problem. The true Mac executable which is somewhere in the .app is a "UNIX executable file". When I write such a file I cannot make it become a "UNIX executable file". I've tried a few tricks (even with the UNIX CHMOD command) but nada. Now I'm still pretty green when it comes to UNIX, and I've not tried everything yet, so I'd like to hear some suggestions.
|