From b307b647ffec1f3052ad07451acc0a5c856cf86d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 10 Feb 2012 13:19:46 -0800 Subject: Added section in INSTALL on creating relocatable binary on windows. --- INSTALL | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/INSTALL b/INSTALL index ad6147113..7a63989c5 100644 --- a/INSTALL +++ b/INSTALL @@ -94,6 +94,37 @@ you will need [zip-archive], [blaze-html], and [highlighting-kate]. generate a script that can be run to register the package at install time. +Creating a relocatable Windows binary +------------------------------------- + +On Windows it is possible to compile pandoc such that it +(and its data files) are "relocatable." You can put the relocatable +binary in any directory (even on a USB drive), and it will look for its +data files there. + + cabal install --flags="embed_data_files" citeproc-hs + cabal install --flags="executable -library" --datasubdir= + +You can find `pandoc.exe` in `dist/build/pandoc`. Copy this wherever +you please, and copy the following data files to the same place: + + README + COPYRIGHT + COPYING + reference.odt + reference.docx + epub.css + default.csl + templates/ + data/ + s5/ + slidy/ + dzslides/ + pcre-license.txt + pcre3.dll + +This is essentially what the binary installer does. + [zip-archive]: http://hackage.haskell.org/package/zip-archive [highlighting-kate]: http://hackage.haskell.org/package/highlighting-kate [blaze-html]: http://hackage.haskell.org/package/blaze-html -- cgit v1.2.3