Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-11

Creating OSX application bundles from the command line

7 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Reinier Olislagers

Hi all,

Is there by any chance a way of building OSX application bundles from the command line - I'm guessing no & patches are welcome ;)

Thanks,
Reinier

Reply by email

Reinier Olislagers
to Reinier Olislagers
Reinier Olislagers wrote 5 lines
Hi all, Is there by any chance a way of building OSX application bundles from the command line - I'm guessing no & patches are welcome ;)

Mmm, I realize I could adapt some scripts from the OSX wiki pages, but having it incorporated into lazbuild would be nice ;)

Reply by email

Mattias Gaertner
to Reinier Olislagers
Show quoted text 9 lines
On 21/11/2013 15:31, Reinier Olislagers wrote: > Hi all, > > Is there by any chance a way of building OSX application bundles from > the command line - I'm guessing no & patches are welcome ;) > Mmm, I realize I could adapt some scripts from the OSX wiki pages, but having it incorporated into lazbuild would be nice ;)

There is an example in
components/macfiles/examples/createmacapplication.lpi

Mattias

Reply by email

Kostas Michalopoulos
to Mattias Gaertner

Here is a shell script i've written for my 3D world editor:

http://runtimelegend.com/rep/rtworld/artifact/86a5ad373309b3f56d79b1252be705b8e6c0b4a8

It does a full release build: builds the project's Release configuration, creates the app bundle, creates directories for a clean distribution, copies the files, removes any annoying .DS_Store files and creates a ready to use DMG from the folder's contents.

Mattias Gaertner wrote 23 lines
On Thu, 21 Nov 2013 15:35:05 +0100 Reinier Olislagers wrote: > On 21/11/2013 15:31, Reinier Olislagers wrote: > > Hi all, > > > > Is there by any chance a way of building OSX application bundles from > > the command line - I'm guessing no & patches are welcome ;) > > > > Mmm, I realize I could adapt some scripts from the OSX wiki pages, but > having it incorporated into lazbuild would be nice ;) There is an example in components/macfiles/examples/createmacapplication.lpi Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Schindler Karl-Michael

Hi

Show quoted text 14 lines
Date: Thu, 21 Nov 2013 15:31:16 +0100 From: Reinier Olislagers Subject: [Lazarus] Creating OSX application bundles from the command line To: Lazarus mailing list Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Hi all, Is there by any chance a way of building OSX application bundles from the command line - I'm guessing no & patches are welcome ;) Thanks, Reinier

The Makefile of UltraStar Deluxe has the creation of the OSX application bundles including adjustments of dylibs. Check the targets macosx-app and macosx-standalone-app

Link: http://sourceforge.net/p/ultrastardx/svn/HEAD/tree/trunk/Makefile.in

Maybe the creation of the disk image is also helpful. target macosx-dmg

Michael Schindler

Reply by email

Reinier Olislagers
to Mattias Gaertner: On Thu, 21 Nov 2013 15:35:05 +0100 There is an example in…
Mattias Gaertner wrote 16 lines
On Thu, 21 Nov 2013 15:35:05 +0100 Reinier Olislagers wrote: > On 21/11/2013 15:31, Reinier Olislagers wrote: >> Hi all, >> >> Is there by any chance a way of building OSX application bundles from >> the command line - I'm guessing no & patches are welcome ;) >> > > Mmm, I realize I could adapt some scripts from the OSX wiki pages, but > having it incorporated into lazbuild would be nice ;) There is an example in components/macfiles/examples/createmacapplication.lpi

Well, it seems lazbuild itself already builds application bundles. No idea if you first need to have clicked on create application bundle in project options but it works.

My version of an application bundle/.dmg creation script can be found at https://bitbucket.org/reiniero/smalltools/src/
directory BankConvert,
banco_OSX_bundle_dmg_creation_make-mac-dist.sh

Catchy name, eh ;)

The only thing it adds over Kostas' version is a link to the Applications directory inside the dmg so the user can drag and drop the application bundle on the link to install more easily.

Thanks,
Reinier

Reply by email