From e177344ae12abc8e2b3c5a1acc2ad75355107e30 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Tue, 25 Jul 2023 17:19:46 +0530 Subject: [PATCH] Sign the pgAdmin4.exe file using signtool before creating the installer. --- Make.bat | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Make.bat b/Make.bat index cc42998e1..57308ccc6 100644 --- a/Make.bat +++ b/Make.bat @@ -292,6 +292,15 @@ REM Main build sequence Ends REM WGET END MOVE "%BUILDROOT%\runtime\nw.exe" "%BUILDROOT%\runtime\pgAdmin4.exe" + ECHO Attempting to sign the pgAdmin4.exe... + CALL "%PGADMIN_SIGNTOOL_DIR%\signtool.exe" sign /tr http://timestamp.digicert.com "%BUILDROOT%\runtime\pgAdmin4.exe" + IF %ERRORLEVEL% NEQ 0 ( + ECHO. + ECHO ************************************************************ + ECHO * Failed to sign the pgAdmin4.exe + ECHO ************************************************************ + PAUSE + ) ECHO Replacing executable icon... CALL yarn --cwd "%TMPDIR%" add winresourcer || EXIT /B