[Lazarus] Mac OS X 6.2

Hess, Philip J pjhess at purdue.edu
Thu Nov 12 19:59:51 CET 2009


I.e., prior to any distribution of the bundle, be sure to do something like this:

rm "myapp.app/contents/macos/myappexec"
cp -p myappexec "myapp.app/contents/macos"

The executable is created back in the main project folder with a symlink pointing to it from within the .app bundle to simplify development. When you distribute you have to replace the symlink with the actual executable file.

Thanks.

-Phil

________________________________________
From: dmitry boyarintsev [skalogryz.lists at gmail.com]
Sent: Thursday, November 12, 2009 1:49 PM
To: Lazarus mailing list
Subject: Re: [Lazarus] Mac OS X 6.2

Hello John

Lazarus uses symbol link to maintain MacOSX bundle.
The project layout is the following:

project (executable binary)
project.app (the bundle)
project.app/Content/MacOS/project (symbolic link to project binary
outside the bundle)

When you copy the bundle via Finder, the symbolic link is copied
instead of the file. So the bundle at the new location cannot be
executed, because the link inside of the new bundle points to a wrong
place.

To solve the problem you need to replace a symbolic link in the bundle
with the project binary.

thanks,
dmiry

--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




More information about the Lazarus mailing list