SDA-2650 Fixed detection/install of markdown-pdf

This commit is contained in:
Mattias Gustavsson 2020-12-02 09:35:27 +01:00
parent 85f14ca3bb
commit dcf24a51dc

View File

@ -107,8 +107,8 @@ if NOT EXIST c:\electron-installer\signing.bat (
call c:\electron-installer\signing.bat
copy "WixSharpInstaller\Symphony.msi" "%targetsDir%\Experimental-%archiveName%.msi"
%SystemRoot%\System32\where.exe markdown-pdf
if NOT ERRORLEVEL 0 (
npm install -g markdown-pdf
%SystemRoot%\System32\where.exe /q markdown-pdf
if ERRORLEVEL 1 (
call npm install -g markdown-pdf
)
markdown-pdf install_instructions_win.md -o "%targetsDir%\Install-Instructions-Experimental-%archiveName%.pdf"