X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=support%2Fcreate-installer.bat;h=d9f6a579d3b3a20d8586250000f3633716b199f3;hb=904f56b3b79c2eb94aab4d8dee5601389b4279a7;hp=eefd7db594f84f9205a1ae06ec58999d7ffcc0c0;hpb=44f8f041839d490603fb40abb2b86807d2f9809d;p=deb_libcec.git diff --git a/support/create-installer.bat b/support/create-installer.bat index eefd7db..d9f6a57 100644 --- a/support/create-installer.bat +++ b/support/create-installer.bat @@ -1,5 +1,7 @@ @echo off +set EXITCODE=1 + rem Check for NSIS IF EXIST "%ProgramFiles%\NSIS\makensis.exe" ( set NSIS="%ProgramFiles%\NSIS\makensis.exe" @@ -127,8 +129,14 @@ IF EXIST "..\support\private\sign-binary.cmd" ( CALL ..\support\private\sign-binary.cmd ..\build\libCEC-installer.exe ) -echo. The installer can be found here: ..\build\libCEC-installer.exe +IF "%1%"=="" ( + echo. The installer can be found here: ..\build\libCEC-installer.exe +) ELSE ( + move ..\build\libCEC-installer.exe ..\build\libCEC-%1%-installer.exe + echo. The installer can be found here: ..\build\libCEC-%1%-installer.exe +) +set EXITCODE=0 GOTO EXIT :NOSDK10 @@ -157,3 +165,9 @@ del /s /f /q ..\build\x64 rmdir ..\build\x64 cd ..\support +IF "%1%"=="" ( + echo. exitcode = %EXITCODE% +) ELSE ( + exit %EXITCODE% +) +