All Manuals > LispWorks Release Notes and Installation Guide > 8 Configuration on Mac OS X > 8.4 Saving and testing the configured image


8.4.2 Create and use a save-image script

  1. Create a configuration and saving script /tmp/save-config.lisp containing:
  2. (in-package "CL-USER")
    (load "/tmp/my-configuration.lisp") 
    (save-image-with-bundle "/Applications/My LispWorks/LW")
    (save-image "my-lispworks-gtk")

    Note: This will create a non-universal binary, containing only the architecture on which you call save-image or save-image-with-bundle .

  3. Change directory to the directory containing the LispWorks image to configure. For the native Mac OS X/Cocoa LispWorks image:
  4. % cd "/Applications/LispWorks 6.1/"

    or for the X11/GTK+ LispWorks image:

    % cd "/Applications/LispWorks 6.1"
  5. Start the supplied image passing the configuration script the build file. For example enter one of the following commands (on one line of input):
  6. % ./lispworks-6-1-0-macos-universal -build /tmp/save-config.lisp


    % ./lispworks-6-1-0-macos-universal-gtk -build /tmp/save-config.lisp

    If the image will not run at this stage, it is probably not finding a valid key.

    Saving the image takes some time.

You can now use the new My LispWorks/ application bundle or the my-lispworks-gtk image by starting it just as you did the supplied LispWorks. The supplied LispWorks is not required after the configuration process has been successfully completed.

Do not try to save a new image over an image that is currently running. Instead, save an image under a unique name, and then, if necessary, replace the new image with the old one after the call to save-image has returned.

LispWorks Release Notes and Installation Guide - 23 Dec 2011