git.iko.soy/typeable/pandoc
on master help sign in
Use versioned directory for windows release zipfile.
c78af6fJohn MacFarlane
.github/workflows/release-candidate.yml+9−8
@@ -53,12 +53,6 @@ jobs:
53 run: |
53 run: |
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
61− cd windows
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:
69 exit /b 1
63 exit /b 1
70 )
64 )
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+ cd windows
72 echo Creating msi...
73 echo Creating msi...
73 dir
74 dir
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%
82 cd ..
83 cd ..
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
windows/make-windows-installer.batdeleted−29
@@ -1,29 +0,0 @@
1−@echo off
2−stack install --test --ghc-options="-O2" --stack-yaml=..\stack.yaml
3−if %errorlevel% neq 0 exit /b %errorlevel%
4−for /f "delims=" %%a in ('stack path --local-bin-path') do @set BINPATH=%%a
5−%BINPATH%\pandoc.exe -s --toc ..\MANUAL.txt -o MANUAL.html
6−if %errorlevel% neq 0 exit /b %errorlevel%
7−%BINPATH%\pandoc.exe -s ..\COPYING.md -t rtf -o COPYING.rtf
8−if %errorlevel% neq 0 exit /b %errorlevel%
9−copy ..\COPYRIGHT COPYRIGHT.txt
10−for /f "tokens=1-2 delims= " %%a in ('%BINPATH%\pandoc.exe --version') do (
11− @set VERSION=%%b
12− goto :next
13− )
14−:next
15−if "%VERSION%" == "" (
16− echo Error: could not determine version number.
17− exit /b 1
18−)
19−echo Detected version %VERSION%
20−echo Creating msi...
21−candle -dVERSION=%VERSION% -dBINPATH=%BINPATH% *.wxs -out wixobj\
22−if %errorlevel% neq 0 exit /b %errorlevel%
23−light -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out pandoc-%VERSION%-windows.msi wixobj\*.wixobj
24−if %errorlevel% neq 0 exit /b %errorlevel%
25−echo Starting kSign: sign, then quit kSign to complete the build...
26−kSign
27−
28−echo Copying to shared drive
29−copy pandoc-%VERSION%-windows.msi \\VBOXSVR\WindowsShared\
windows/pandoc.wxs+3−3
@@ -40,9 +40,9 @@
40 <File Id="pandocEXE" Name="pandoc.exe"
40 <File Id="pandocEXE" Name="pandoc.exe"
41 Source="$(var.BINPATH)\pandoc.exe" />
41 Source="$(var.BINPATH)\pandoc.exe" />
42 <File Id="pandocCOPYRIGHT" Name="COPYRIGHT.txt"
42 <File Id="pandocCOPYRIGHT" Name="COPYRIGHT.txt"
43− Source="COPYRIGHT.txt" />
43+ Source="$(var.BINPATH)\COPYRIGHT.txt" />
44 <File Id="pandocCOPYING" Name="COPYING.rtf"
44 <File Id="pandocCOPYING" Name="COPYING.rtf"
45− Source="COPYING.rtf" />
45+ Source="$(var.BINPATH)\COPYING.rtf" />
46 </Component>
46 </Component>
47
47
48 <Component Id="CitationSupport"
48 <Component Id="CitationSupport"
@@ -58,7 +58,7 @@
58 <Component Id="Documentation"
58 <Component Id="Documentation"
59 Guid="A8D54A76-1A3D-4647-8327-81B69D39D8A3">
59 Guid="A8D54A76-1A3D-4647-8327-81B69D39D8A3">
60 <File Id="pandocMANUAL" Name="Pandoc User's Guide.html"
60 <File Id="pandocMANUAL" Name="Pandoc User's Guide.html"
61− Source="MANUAL.html" KeyPath="yes">
61+ Source="$(var.BINPATH)\MANUAL.html" KeyPath="yes">
62 <Shortcut Id="ApplicationStartMenuShortcut"
62 <Shortcut Id="ApplicationStartMenuShortcut"
63 Directory="ApplicationProgramsFolder"
63 Directory="ApplicationProgramsFolder"
64 Name="Pandoc User’s Guide" Advertise="yes" />
64 Name="Pandoc User’s Guide" Advertise="yes" />