pandoc/windows/make-windows-installer.bat
2013-02-09 21:54:29 -08:00

17 lines
776 B
Batchfile

@echo off
cd ..
rem cabal update
cabal-dev clean
cabal-dev install --reinstall --force-reinstall --flags="embed_data_files" citeproc-hs
if %errorlevel% neq 0 exit /b %errorlevel%
cabal-dev install --reinstall --force-reinstall --flags="embed_data_files"
if %errorlevel% neq 0 exit /b %errorlevel%
strip cabal-dev\bin\pandoc.exe
cabal-dev\bin\pandoc.exe -s --template data\templates\default.html -S README -o README.html
if %errorlevel% neq 0 exit /b %errorlevel%
copy COPYING COPYING.txt
copy COPYRIGHT COPYRIGHT.txt
cd windows
'C:\Program Files\WiX Toolset v3.7\bin\candle.exe' -out pandoc.wxs pandoc.wxs
'C:\Program Files\WiX Toolset v3.7\bin\light.exe' -out Output\pandoc.msi pandoc.wixobj
echo Created Output\pandoc.msi. Run kSign to sign the installer.