git.iko.soy/typeable/pandoc
on master help sign in
appveyor: try to create msi as artifact.
commit4a11e0a450028e044461b282b243e19648818270 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 2 Jun 2016, 16:55 (10 years ago) parent714ea0e
1 file changed+9−2
appveyor.yml+9−2
appveyor.yml+9−2
@@ -13,6 +13,7 @@ cache:
1313build: off
1414
1515install:
16+ - choco install wixtoolset
1617 - curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
1718 - 7z x stack.zip stack.exe
1819 - stack setup > nul
@@ -33,8 +34,14 @@ test_script:
3334
3435after_test:
3536 # .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)
36− - 7z a "pandoc.zip" windows\pandoc.exe"
37+ - cd windows
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
3742
3843artifacts:
39− - path: pandoc.zip
44+ - path: windows\pandoc.zip
4045 name: exe
46+ - path: windows\pandoc-%VERSION%-windows.msi
47+ name: msi