summaryrefslogtreecommitdiff
path: root/make-windows-installer.sh
diff options
context:
space:
mode:
authorNikodemus Siivola <nikodemus@random-state.net>2006-06-01 09:14:25 +0000
committerNikodemus Siivola <nikodemus@random-state.net>2006-06-01 09:14:25 +0000
commit1acfa21e0796f5d72d776b0fd53645813d5f2d98 (patch)
tree6879355f4299046afa144d5afdf7f784e79f51a1 /make-windows-installer.sh
parent57f8e261b638ac797036aa4cb66f6e2d604170f5 (diff)
0.9.13.16: preliminary Windows installer builder
* Added "free software & no warranty" summary to top of COPYING. * tools-for-build/rtf.lisp turns COPYING into License.rtf needed for the installer. * tools-for-build/wxs.lisp generates the XML from which the installer is built. * refactor good-for-lisp pathname logic from make-target-contrib.sh to sbcl-pwd.sh. * make-windows-installer.sh builds sbcl.msi into output/, assuming WiX (2.0) is installed in $PROGRAMFILES/WiX or $WIX_PATH. The installer installs sbcl.exe, sbcl.core, and contribs into $PROGRAMFILES/Steel Bank Common Lisp/<sbcl-version>/ by default, though the location is configurable. .lisp and .fasl files are associated with the installed SBCL, action being to start SBCL and load the file. The installation directory is added to PATH. SBCL_HOME is set to the installation directory. A shortcut is added to the start-menu. The shortcut refers to the core explicitly, and will continue to work even if a newer SBCL is installed.
Diffstat (limited to 'make-windows-installer.sh')
-rw-r--r--make-windows-installer.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/make-windows-installer.sh b/make-windows-installer.sh
new file mode 100644
index 000000000..ccfa5f00d
--- /dev/null
+++ b/make-windows-installer.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+# This software is part of the SBCL system. See the README file for
+# more information.
+#
+# This software is derived from the CMU CL system, which was
+# written at Carnegie Mellon University and released into the
+# public domain. The software is in the public domain and is
+# provided with absolutely no warranty. See the COPYING and CREDITS
+# files for more information.
+
+WIX_PATH="${WIX_PATH:-$PROGRAMFILES\WiX}"
+
+. ./sbcl-pwd.sh
+sbcl_pwd
+
+cd output
+
+"$SBCL_PWD/src/runtime/sbcl" --noinform --core "$SBCL_PWD/output/sbcl.core" \
+ --disable-debugger --no-sysinit --no-userinit \
+ --load ../tools-for-build/rtf.lisp \
+ --load ../tools-for-build/wxs.lisp \
+ --eval '(progn
+ (write-rtf (read-text "../COPYING") "License.rtf")
+ (write-wxs "sbcl.wxs")
+ (quit))'
+
+"$WIX_PATH/candle" sbcl.wxs
+"$WIX_PATH/light" sbcl.wixobj "$WIX_PATH/wixui.wixlib" \
+ -loc "$WIX_PATH/WixUI_en-us.wxl" \
+ -out sbcl.msi