PDA

View Full Version : How to make Mac ".app" a single file?


FJGamer
02-18-2009, 05:15 PM
I've compiled .app versions of my game (AS3) in CS3. When the Mac user tried to unzip it, she said it just opened a folder. When I put the .app folder in another folder and zipped the container folder, she said it worked fine. :confused: How would I make the equivalent of a .exe for Mac?

The reason I want this is to make it harder to obtain the .swf file. I don't want that readily available to anyone. (I know about all those special encryption tools (which don't really prevent theft, just slow it down), but I know of nothing that makes a Mac projector with the swf embedded in it.

The .app is a folder. How do I make it a single file?
Again, this isn't about theft prevention; this is about making an all-in-one file, similar to a .exe Windows projector, that can play on any Mac computer.

northcode
02-18-2009, 08:50 PM
As far as I know, you don't. The MAC file system is different from Windows. You can move the .app bundle around like a file and launch it like a file, but it's really a folder. The bundle can contain a PPC executable and/or an Intel executable so it looks like a single executable that just runs on all versions of the Mac OS. The OS is doing some work under the covers to see whether the bundle contains an executable that it can run.