Attempt to sign the Windows installer, failing with a warning if there's no cert available. Fixes #1823
parent
3e743ad582
commit
9893b1bee4
16
Make.bat
16
Make.bat
|
@ -39,6 +39,8 @@ IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
|
|||
call :CREATE_INSTALLER
|
||||
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
|
||||
|
||||
call :SIGN_INSTALLER
|
||||
|
||||
CD %WD%
|
||||
goto:EXIT
|
||||
REM Main function Ends
|
||||
|
@ -402,6 +404,20 @@ GOTO:EOF
|
|||
CD %WD%
|
||||
GOTO:EOF
|
||||
|
||||
:SIGN_INSTALLER
|
||||
ECHO Attempting to sign the installer...
|
||||
signtool sign /t http://timestamp.verisign.com/scripts/timstamp.dll "%TARGETINSTALLER%\%INSTALLERNAME%"
|
||||
IF %ERRORLEVEL% NEQ 0 (
|
||||
ECHO
|
||||
ECHO ************************************************************
|
||||
ECHO * Failed to sign the installer
|
||||
ECHO ************************************************************
|
||||
SLEEP 5
|
||||
)
|
||||
|
||||
CD %WD%
|
||||
GOTO:EOF
|
||||
|
||||
:CLEANUP_ENV
|
||||
ECHO Cleaning up private environment...
|
||||
rd "%PGBUILDPATH%\%VIRTUALENV%\Include" /S /Q
|
||||
|
|
Loading…
Reference in New Issue