Copying standalone to PowerBook
sarah.reichelt at gmail.com
Mon Nov 3 15:01:18 CST 2008
> Here's what I did...
> I developed an application on WinXP with RunRev v3.0.
> Built the standalones for: PowerPC, Intel, and Windows; with the default
> values in the application settings for each platform.
> Copied each of the 3 standalone folders onto a USB 1GB drive.
> Took it to the PowerBook, and copied the "MacOSX PowerPC-32" folder to the
> Applications folder using Finder.
> Clicked on the "application.app" folder (under the above folder) and the
> application launched. So far no problem.
> I kept the Finder open to the "application.app" folder. It showed that the
> application file size was 3.1 MB, on first launch of the application.
> Now while using the application, the file size changed to 92 KB.
> I then closed the application, and tried launching it again, and nothing -
> it wouldn't load.
If the app ran correctly once, then copying the folder over worked
fine, so I suspect that you are correct and the app is deleting parts
of itself. On Macs, what appears to be a single application file is
actually a folder. When the app runs, the defaultFolder starts off by
pointing to a sub-folder inside this app folder - actually the folder
which holds the compiled mainStack + engine. From the sizes you quote,
I would say that your app is deleting all the files in this folder,
which may mean all the sub-stacks as well as the mainStack.
To check if this has happened, right-click on the app and choose "Show
Package Contents". See if the files in the revealed folder match the
files in the folder you created on your Windows computer.
Do you have any file deletions your scripts? If so, check what folder
they are using.
As far as installers go, most Mac apps come as a disk image and just
get dragged into the Applications folder. Check out Disk Utility (in
the Mac's Utilities folder) for how to make an image. For more power &
flexibility, I prefer DropDMG <http://c-command.com/dropdmg/>. Just
remember that an app really is a folder, so if supplying it for
download, you must compress it in to a single file, preferably a disk
image, but a zip file will work too.
More information about the use-livecode