@@ -53,12 +53,6 @@ jobs:
54 for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
54 for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
55 stack build ${{ matrix.versions.stack_opts }}pandoc pandoc-citeproc
55 stack build ${{ matrix.versions.stack_opts }}pandoc pandoc-citeproc
56− @set WINDOWS=%CD%\windows
57− forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C echo @path && echo %%WINDOWS%% && copy @path %%WINDOWS%%"
58− stack exec pandoc -- -s --toc MANUAL.txt -o windows\MANUAL.html
59− stack exec pandoc -- -s COPYING.md -t rtf -o windows\COPYING.rtf
60− copy COPYRIGHT windows\COPYRIGHT.txt
62 for /f "tokens=1-2 delims= " %%a in ('stack exec pandoc -- --version') do (
56 for /f "tokens=1-2 delims= " %%a in ('stack exec pandoc -- --version') do (
63 @set VERSION=%%b
57 @set VERSION=%%b
64 goto :next
58 goto :next
@@ -69,16 +63,23 @@ jobs:
71 echo Detected version %VERSION%
65 echo Detected version %VERSION%
66+ @set WINDOWS=%CD%\windows
67+ @set RELEASE=%WINDOWS%\pandoc-%VERSION%
68+ forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C echo @path && echo %%WINDOWS%% && copy @path %%RELEASE%%"
69+ stack exec pandoc -- -s --toc MANUAL.txt -o %RELEASE%\MANUAL.html
70+ stack exec pandoc -- -s COPYING.md -t rtf -o %RELEASE%\COPYING.rtf
71+ copy COPYRIGHT %RELEASE%\COPYRIGHT.txt
72 echo Creating msi...
73 echo Creating msi...
74 @set WIXBIN="c:\Program Files (x86)\WiX Toolset v3.11\bin"
75 @set WIXBIN="c:\Program Files (x86)\WiX Toolset v3.11\bin"
75 @set WORKDIR=%CD%
76 @set WORKDIR=%CD%
76 echo Running candle...
77 echo Running candle...
77− %WIXBIN%\candle -arch ${{ matrix.versions.arch }} -dVERSION=%VERSION% -dBINPATH=%WORKDIR% *.wxs -out wixobj\
78+ %WIXBIN%\candle -arch ${{ matrix.versions.arch }} -dVERSION=%VERSION% -dBINPATH=%RELEASE% *.wxs -out wixobj\
78 if %errorlevel% neq 0 exit /b %errorlevel%
79 if %errorlevel% neq 0 exit /b %errorlevel%
79 echo Running light...
80 echo Running light...
80 %WIXBIN%\light -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out %WORKDIR%\pandoc-%VERSION%-${{ matrix.versions.osarch }}-UNSIGNED.msi wixobj\*.wixobj
81 %WIXBIN%\light -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out %WORKDIR%\pandoc-%VERSION%-${{ matrix.versions.osarch }}-UNSIGNED.msi wixobj\*.wixobj
81− 7z a "pandoc-%VERSION%-${{ matrix.versions.osarch }}.zip" pandoc.exe pandoc-citeproc.exe MANUAL.html COPYING.rtf
82+ 7z a "pandoc-%VERSION%-${{ matrix.versions.osarch }}.zip" pandoc-%VERSION%
83 mkdir windows-release-candidate
84 mkdir windows-release-candidate
84 copy windows\pandoc-%VERSION%-${{ matrix.versions.osarch }}-UNSIGNED.msi windows-release-candidate
85 copy windows\pandoc-%VERSION%-${{ matrix.versions.osarch }}-UNSIGNED.msi windows-release-candidate