146c7a78e5
* Scope selection in the first screen. Since I couldn't detect if the user is 'real' admin user, default is still per user. * Scope is limited to per machine on servers. Though not perfect (couldn't detect `DisableMSI` policy), it should handle #2389 better. * For per machine, location can be changed by selecting Advanced. Localization: modified templates from WiX toolkit support localization very well. A short sample localization file for en-us is used. * Dialog elements are moved to their own files.
29 lines
1.1 KiB
Batchfile
29 lines
1.1 KiB
Batchfile
@echo off
|
|
stack install --test
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
for /f "delims=" %%a in ('stack path --local-bin-path') do @set BINPATH=%%a
|
|
%BINPATH%\pandoc.exe -s -S ..\README -o README.html
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
%BINPATH%\pandoc.exe -s ..\COPYING -t rtf -S -o COPYING.rtf
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
copy ..\COPYRIGHT COPYRIGHT.txt
|
|
for /f "tokens=1-2 delims= " %%a in ('%BINPATH%\pandoc.exe --version') do (
|
|
@set VERSION=%%b
|
|
goto :next
|
|
)
|
|
:next
|
|
if "%VERSION%" == "" (
|
|
echo Error: could not determine version number.
|
|
exit /b 1
|
|
)
|
|
echo Detected version %VERSION%
|
|
echo Creating msi...
|
|
candle -dVERSION=%VERSION% -dBINPATH=%BINPATH% *.wxs -out wixobj\
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
light -sw1076 -ext WixUIExtension -ext WixUtilExtension -cultures:en-us -loc Pandoc-en-us.wxl -out pandoc-%VERSION%-windows.msi wixobj\*.wixobj
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
echo Starting kSign: sign, then quit kSign to complete the build...
|
|
kSign
|
|
|
|
echo Copying to shared drive
|
|
copy pandoc-%VERSION%-windows.msi \\VBOXSVR\WindowsShared\
|