mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-21 16:38:41 -06:00
SDA-4552 (Change signing tool for .msi) (#2134)
* SDA-4552 Fix sign issue * SDA-4552 - Set file name manually * SDA-4552 - Set file-name flag to true * SDA-4552 - fix symexe error * SDA-4552 - use just argument * SDA-4552 - add verbose log * SDA-4552 - /d for .msi * SDA-4552 - /d for .msi with name * SDA-4552 - change signing tool
This commit is contained in:
parent
ebae507c12
commit
0730088539
@ -12,7 +12,6 @@ set SCREENSHARE_INDICATOR_PATH="node_modules\screen-share-indicator-frame\Screen
|
||||
set NATIVE_WINDOW_HANDLE_PATH="node_modules\symphony-native-window-handle-helper\SymphonyNativeWindowHandleHelper.exe"
|
||||
set SCREEN_SNIPPET_PATH="node_modules\screen-snippet\ScreenSnippet.exe"
|
||||
set SYMPHONY_EXE_PATH=%WORKSPACE%\dist\win-unpacked\Symphony.exe
|
||||
set SYMPHONY_SYMVER_EXE_PATH=%WORKSPACE%\dist\Symphony-%SYMVER%-win.exe
|
||||
set SYMPHONY_MSI_PATH="WixSharpInstaller\Symphony.msi"
|
||||
|
||||
set PATH=%PATH%;C:\Program Files\nodejs\;C:\Program Files\Git\cmd
|
||||
@ -55,7 +54,7 @@ echo %SS_FOLDER%
|
||||
call smctl sign --fingerprint %DIGICERT_FINGERPRINT% --input %SCREENSHARE_INDICATOR_PATH% --tool signtool --verbose
|
||||
smctl sign verify --input node_modules\screen-share-indicator-frame\ScreenShareIndicatorFrame.exe
|
||||
|
||||
smctl sign --tool signtool --fingerprint %DIGICERT_FINGERPRINT% --input %NATIVE_WINDOW_HANDLE_PATH%
|
||||
smctl sign --tool signtool --fingerprint %DIGICERT_FINGERPRINT% --input %NATIVE_WINDOW_HANDLE_PATH% --file-name
|
||||
smctl sign verify --input %NATIVE_WINDOW_HANDLE_PATH%
|
||||
|
||||
IF %errorlevel% neq 0 (
|
||||
@ -63,7 +62,7 @@ IF %errorlevel% neq 0 (
|
||||
exit /b -1
|
||||
)
|
||||
|
||||
smctl sign --tool signtool --fingerprint %DIGICERT_FINGERPRINT% --input %SCREEN_SNIPPET_PATH%
|
||||
smctl sign --tool signtool --fingerprint %DIGICERT_FINGERPRINT% --input %SCREEN_SNIPPET_PATH% --file-name
|
||||
smctl sign verify --input %SCREEN_SNIPPET_PATH%
|
||||
|
||||
IF %errorlevel% neq 0 (
|
||||
@ -117,15 +116,16 @@ set rootDir="%CD%"
|
||||
cd %installerDir%
|
||||
|
||||
echo "Signing Symphony.exe file.."
|
||||
smctl sign --tool signtool --fingerprint %DIGICERT_FINGERPRINT% --input %SYMPHONY_EXE_PATH%
|
||||
smctl sign --tool signtool --fingerprint %DIGICERT_FINGERPRINT% --input %SYMPHONY_EXE_PATH% --file-name
|
||||
smctl sign verify --input %SYMPHONY_EXE_PATH%
|
||||
IF %errorlevel% neq 0 (
|
||||
echo "Signing failed"
|
||||
exit /b -1
|
||||
)
|
||||
|
||||
set SYMPHONY_SYMVER_EXE_PATH=%WORKSPACE%\dist\Symphony-%SYMVER%-win.exe
|
||||
echo "Signing Symphony-SYMVER-win.exe file.."
|
||||
smctl sign --tool signtool --fingerprint %DIGICERT_FINGERPRINT% --input %SYMPHONY_SYMVER_EXE_PATH%
|
||||
smctl sign --tool signtool --fingerprint %DIGICERT_FINGERPRINT% --input %SYMPHONY_SYMVER_EXE_PATH% --file-name
|
||||
smctl sign verify --input %SYMPHONY_SYMVER_EXE_PATH%
|
||||
IF %errorlevel% neq 0 (
|
||||
echo "Signing failed"
|
||||
@ -139,7 +139,7 @@ echo "Building new installer with Wix Sharp"
|
||||
call "BuildWixSharpInstaller.bat"
|
||||
|
||||
echo "Signing MSI file.."
|
||||
smctl sign --tool signtool --fingerprint %DIGICERT_FINGERPRINT% --input %SYMPHONY_MSI_PATH%
|
||||
signtool sign /d Symphony /tr http://timestamp.digicert.com /td SHA256 /fd SHA256 /sha1 %DIGICERT_FINGERPRINT% %SYMPHONY_MSI_PATH%
|
||||
smctl sign verify --input %SYMPHONY_MSI_PATH%
|
||||
IF %errorlevel% neq 0 (
|
||||
echo "Failed to sign installer"
|
||||
|
Loading…
Reference in New Issue
Block a user