aboutsummaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml18
1 files changed, 15 insertions, 3 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 0303a9ddf..e1d6061ac 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -3,16 +3,18 @@ environment:
global:
STACK_ROOT: "c:\\sr"
STACK_YAML: "c:\\stack\\windows\\stack-appveyor.yaml"
-
+ WIXBIN: "c:\\Program Files (x86)\\WiX Toolset v3.10\\bin"
cache:
- "c:\\sr" # stack root, short paths == fewer problems
- '%LOCALAPPDATA%\Programs\stack' # even less to install...
+ - '%WIXBIN%'
# We don't do a normal C build, but build in test_script via stack
build: off
install:
+ - choco install wixtoolset
- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
- 7z x stack.zip stack.exe
- stack setup > nul
@@ -33,8 +35,18 @@ test_script:
after_test:
# .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is)
- - 7z a "pandoc.zip" windows\pandoc.exe"
+ - 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"
+ - '"%WIXPATH%\\candle" -dVERSION="%VERSION%" -dBINPATH=. pandoc.wxs'
+ - '"%WIXPATH%\\light" -sw1076 -ext WixUIExtension -ext WixUtilExtension -out pandoc-%VERSION%-windows.msi pandoc.wixobj'
artifacts:
- - path: pandoc.zip
+ - path: windows\pandoc.zip
name: exe
+ - path: windows\pandoc-%VERSION%-windows.msi
+ name: msi