Attempt to sign the Windows installer, failing with a warning if there's no cert available. Fixes #1823

pull/3/head
Dave Page 2016-10-04 14:33:52 +01:00
parent 3e743ad582
commit 9893b1bee4
1 changed files with 16 additions and 0 deletions

View File

@ -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