# What do you need to create installer packages
 
  You need XCode beeing installed (actually you need the PackageManager)


# How to build a disk image containing a native OS X installer package

1. Grab the tarball you'd like to create a package for from 
   http://www.gnuenterprise.org/downloads/

   e.g. gnue-appserver-0.4.99-beta1.tar.gz

2. Unpack the tarball into this directory (packaging/osx)
   You'll get a subdirectory like 'gnue-appserver-0.4.99-beta1'

3. Execute the script "create-build" with the package-directory previously
   created

   e.g. create-build gnue-appserver-0.4.99-beta1

   This script creates a final build environment for the package. It will be
   located in the subdirectory 'build'

4. Start the package manager (from /Developer/Tools) and load the package
   manager project file: gnue-appserver.pmproj

   In the 'Contents' tab click on the 'File permissions ...' button. There
   please click the button 'Apply Recommendations" and finally quit this dialog
   via Ok button.

   Now you can call "Project | Build" from the menu bar or by Cmd-B.
   Determine the name of the installer package 
   (e.g.  gnue-appserver-0.4.99.1-py23) and press the Save button. You'll be
   asked for the administrator password.

   After the build is finished and there were no errors you can quit the
   package manager. Another directory has been created - the package directory,
   e.g. gnue-appserver-0.4.99.1-py23.pkg

5. Execute the script "create-image" with the package directory
   e.g. create-image gnue-appserver-0.4.99.1-py23.pkg

   This will create the disc image containing the installer package as well as
   the contents of the 'dist' subdirectory.

