NextPrevUpTopContentsIndex

12.3.1 Example application bundle delivery script

Note how this script calls deliver with the executable path returned by write-macos-application-bundle :

(in-package "CL-USER")
(load-all-patches)
;; Compile and load othello example code
(compile-file (example-file "capi/applications/othello")
              :output-file :temp
              :load t)
;; Compile and load Application Bundle example code
#+:cocoa
(compile-file
 (example-file "configuration/macos-application-bundle")
 :output-file :temp
 :load t)
;; Now deliver the application itself and create the 
;; application Othello.app
(deliver 'play-othello 
         #+:cocoa (write-macos-application-bundle
                  "~/Desktop/Othello.app"
                  ;; Do not copy Lisp Source File
                  ;;  associations from LispWorks.app
                  :document-types nil)
         #-:cocoa "~/othello"
         0 :interface :capi)

In the session below script.lisp is in the user's home directory. Here is the start and end of the session output in Terminal.app:

mymac:/Applications/LispWorks 5.1/LispWorks.app/Contents/MacOS 2 % ./lispworks-5-1-0-macos-universal -build ~/script.lisp 
LispWorks(R): The Common Lisp Programming Environment
Copyright (C) 1987-2007 LispWorks Ltd.  All rights reserved.
Version 5.1.0
Saved by LispWorks as lispworks-5-1-0-x86-darwin, at 18 Oct 2007 1:41
User dubya on mymac
; Loading text file /u/dubya/deliver-othello.lisp
;  Loading text file /Applications/LispWorks 5.1/Library/lib/5-1-0-0/private-patches/load.lisp
;;; Compiling file /Applications/LispWorks 5.1/Library/lib/5-1-0-0/examples/capi/applications/othello ...
;;; Safety = 3, Speed = 1, Space = 1, Float = 1, Interruptible = 0
 
[... full compilation and delivery output not shown...]
 
Shaking stage : Saving image
Build saving image: /u/dubya/Desktop/Othello.app/Contents/MacOS/Othello
Build saved image: /u/ldisk/dubya/Desktop/Othello.app/Contents/MacOS/Othello
 
Delivery successful - /u/dubya/Desktop/Othello.app/Contents/MacOS/Othello

The last line of the deliver output shows the full path to the executable, but you should run the application bundle Othello.app via the Finder.


LispWorks Delivery User Guide - 14 Mar 2008

NextPrevUpTopContentsIndex