appveyor: another try at setting version.

This commit is contained in:
John MacFarlane 2016-06-03 10:30:06 -07:00
parent 99cd7978a3
commit 366b94d26b

View file

@ -37,11 +37,13 @@ after_test:
# .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)
- cd windows
- 7z a "pandoc.zip" pandoc.exe"
- for /f "tokens=2 delims= " %%a in ('.\pandoc.exe --version') do ( set "VERSION=%%a" && exit )
- .\pandoc.exe -s -S ..\README -o README.html
- .\pandoc.exe -s -S ..\COPYING -o COPYING.rtf
- copy ..\COPYRIGHT COPYRIGHT.txt
- set "WIXPATH=C:\\Program Files (x86)\\WiX Toolset v3.10\\bin"
- |
for /f "tokens=1-2 delims= " %%a in ('.\pandoc.exe --version') do ( set VERSION=%%b && exit )
- echo %VERSION%
- '"%WIXPATH%\\candle" -dVERSION="%VERSION%" -dBINPATH=. pandoc.wxs'
- '"%WIXPATH%\\light" -sw1076 -ext WixUIExtension -ext WixUtilExtension -out pandoc-%VERSION%-windows.msi pandoc.wixobj'