@@ -13,6 +13,7 @@ cache:
13build: off
13build: off
16+ - choco install wixtoolset
16 - curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
17 - curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
17 - 7z x stack.zip stack.exe
18 - 7z x stack.zip stack.exe
18 - stack setup > nul
19 - stack setup > nul
@@ -33,8 +34,14 @@ test_script:
34after_test:
35after_test:
35 # .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)
36 # .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)
36− - 7z a "pandoc.zip" windows\pandoc.exe"
38+ - 7z a "pandoc.zip" pandoc.exe"
39+ - for /f "tokens=2 delims= " %%a in ('pandoc --version') do ( set "VERSION=%%a" && exit )
40+ - candle -dVERSION="%VERSION%" pandoc.wxs
41+ - light -sw1076 -ext WixUIExtension -ext WixUtilExtension -out pandoc-%VERSION%-windows.msi pandoc.wixobj
39− - path: pandoc.zip
44+ - path: windows\pandoc.zip
46+ - path: windows\pandoc-%VERSION%-windows.msi