git.iko.soy/typeable/pandoc
on 1.15.0.5 help sign in
typeable/pandoc/windows/make-windows-installer.bat
34 lines 1.3 kB history raw
1@echo off
2cd ..
3cabal update
4cabal sandbox init
5cabal clean
6cabal install hsb2hs
7if %errorlevel% neq 0 exit /b %errorlevel%
8cabal install -v1 --force --reinstall --flags="embed_data_files" . pandoc-citeproc
9if %errorlevel% neq 0 exit /b %errorlevel%
10strip .\.cabal-sandbox\bin\pandoc.exe
11strip .\.cabal-sandbox\bin\pandoc-citeproc.exe
12.\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.html -S README -o README.html
13if %errorlevel% neq 0 exit /b %errorlevel%
14.\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.rtf COPYING -t rtf -S -o COPYING.rtf
15if %errorlevel% neq 0 exit /b %errorlevel%
16copy COPYRIGHT COPYRIGHT.txt
17for /f "tokens=1-2 delims= " %%a in ('.\.cabal-sandbox\bin\pandoc --version') do (
18 @set VERSION=%%b
19 goto :next
20 )
21:next
22if "%VERSION%" == "" (
23 echo Error: could not determine version number.
24 exit /b 1
26echo Detected version %VERSION%
27cd windows
28echo Creating msi...
29candle -dVERSION=%VERSION% pandoc.wxs
30if %errorlevel% neq 0 exit /b %errorlevel%
31light -sw1076 -ext WixUIExtension -ext WixUtilExtension -out pandoc-%VERSION%-windows.msi pandoc.wixobj
32if %errorlevel% neq 0 exit /b %errorlevel%
33echo Starting kSign: sign, then quit kSign to complete the build...
34kSign