0.9.13.16: preliminary Windows installer builder
[sbcl.git] / make-windows-installer.sh
1 #!/bin/sh
2
3 # This software is part of the SBCL system. See the README file for
4 # more information.
5 #
6 # This software is derived from the CMU CL system, which was
7 # written at Carnegie Mellon University and released into the
8 # public domain. The software is in the public domain and is
9 # provided with absolutely no warranty. See the COPYING and CREDITS
10 # files for more information.
11
12 WIX_PATH="${WIX_PATH:-$PROGRAMFILES\WiX}"
13
14 . ./sbcl-pwd.sh
15 sbcl_pwd
16
17 cd output
18
19 "$SBCL_PWD/src/runtime/sbcl" --noinform --core "$SBCL_PWD/output/sbcl.core" \
20   --disable-debugger --no-sysinit --no-userinit \
21   --load ../tools-for-build/rtf.lisp \
22   --load ../tools-for-build/wxs.lisp \
23   --eval '(progn 
24             (write-rtf (read-text "../COPYING") "License.rtf")
25             (write-wxs "sbcl.wxs")
26             (quit))'
27
28 "$WIX_PATH/candle" sbcl.wxs
29 "$WIX_PATH/light" sbcl.wixobj "$WIX_PATH/wixui.wixlib" \
30    -loc "$WIX_PATH/WixUI_en-us.wxl" \
31    -out sbcl.msi