Upgrade to Windows Installer XML 3.5
[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\Windows Installer XML v3.5\bin}"
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             (with-open-file (f "version.txt"
27                                :direction :output
28                                :if-exists :supersede)
29              (write-line (lisp-implementation-version) f))
30             (exit))'
31
32 "$WIX_PATH/candle" sbcl.wxs
33 "$WIX_PATH/light" sbcl.wixobj \
34    -ext "$WIX_PATH/WixUIExtension.dll" -cultures:en-us \
35    -out sbcl-`cat version.txt`.msi