summaryrefslogtreecommitdiff
path: root/windows/make-windows-installer.bat
blob: 1586daa706b5575c58c8a48fa2e95210617dff54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@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.