git.iko.soy/typeable/pandoc
on master help sign in
appveyor: attempt to create msi package after build.
4a7eaa7John MacFarlane
appveyor.yml+28−3
@@ -7,14 +7,39 @@ install:
7 $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\bin"
7 $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\bin"
8 $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\lib\extralibs\bin"
8 $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\lib\extralibs\bin"
9 $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\mingw\bin"
9 $env:Path += ";${env:ProgramFiles}\Haskell Platform\2014.2.0.0\mingw\bin"
10+ choco install wixtoolset
11+ cabal sandbox init
12+ $env:Path += ";.\.cabal-sandbox\bin"
10 cabal update
13 cabal update
11− cabal install --only-dependencies --enable-tests -w "C:\Program Files\Haskell Platform\2014.2.0.0\bin\ghc-7.8.3"
14+ cabal install --force hsb2hs
12
15
13build_script:
16build_script:
14- ps: |
17- ps: |
15 echo "PATH is $env:Path"
18 echo "PATH is $env:Path"
16− cabal configure --enable-tests -v2 -w "C:\Program Files\Haskell Platform\2014.2.0.0\bin\ghc-7.8.3"
19+ cabal install --force --enable-tests --embed_data_files . pandoc-citeproc
17− cabal build
20+
21+after_build:
22+- ps: |
23+ echo "PATH is $env:Path"
24+ strip .\.cabal-sandbox\bin\pandoc.exe
25+ strip .\.cabal-sandbox\bin\pandoc-citeproc.exe
26+ .\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.html -S README -o README.html
27+ .\.cabal-sandbox\bin\pandoc.exe -s --template data\templates\default.rtf COPYING -t rtf -S -o COPYING.rtf
28+ copy COPYRIGHT COPYRIGHT.txt
29+ for /f "tokens=1-2 delims= " %%a in ('.\.cabal-sandbox\bin\pandoc --version') do (
30+ @set VERSION=%%b
31+ goto :next
32+ )
33+ :next
34+ if "%VERSION%" == "" (
35+ echo Error: could not determine version number.
36+ exit /b 1
37+ )
38+ cd windows
39+ echo Creating msi...
40+ candle -dVERSION=%VERSION% pandoc.wxs
41+ if %errorlevel% neq 0 exit /b %errorlevel%
42+ light -sw1076 -ext WixUIExtension -ext WixUtilExtension -out pandoc-%VERSION%-windows.msi pandoc.wixobj
18
43
19test_script:
44test_script:
20- ps: |
45- ps: |