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