[CMake] CPack: Bundle Generator and fixup_bundle

Clinton Stimpson clinton at elemtech.com
Mon Jul 11 15:09:38 EDT 2011


On Monday, July 11, 2011 01:01:24 pm Dominik Schmidt wrote:
> Hello List!
> 
> I'm trying to use the Bundle Generator for Mac OS X and am facing the
> following problem:
> 
> bundle_fixup() from BundleUtilities would need to be called after
> generating the app *before* generating the .dmg, but looking at the code
> of the generator I can't find any way to do so.
> 
> My first attempt to circumvent this, was to prepare everything at
> POST_INSTALL time but that will be overwritten when the real app is
> generated.
> 
> Now my idea is to have a possibility to hook something up between app
> and dmg generation - either code directly or a file to include. I would
> run that code from cmCPackBundleGenerator::PackageFiles just before
> createDmg() is called.
> 
> Please tell me if I have overseen anything and/or if my suggestion
> sounds any reasonable.
> 
> I would be willing to implement this myself, if you give me a few hints
> how to run cmake-code/files from the cmake source itself.
> 

Have you considered using the DragNDrop generator instead?
Unlike the bundle generator creating a bundle for you, it creates a dmg from 
the layout/bundle(s) created by your install() commands, so you will be able 
to call fixup_bundle().

-- 
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com


More information about the CMake mailing list