@@ -28,27 +28,29 @@ builder({
2828 ] : undefined ,
2929 forceCodeSigning : ! ! keypair ,
3030 win : {
31- certificateSha1 : process . env . SM_CODE_SIGNING_CERT_SHA1_HASH ,
32- publisherName : process . env . SM_PUBLISHER_NAME ,
33- signingHashAlgorithms : [ 'sha256' ] ,
34- sign : keypair ? async function ( configuration ) {
35- console . log ( 'Signing' , configuration )
36- if ( configuration . path ) {
37- try {
38- const out = execSync (
39- `smctl sign --keypair-alias=${ keypair } --input "${ String ( configuration . path ) } "`
40- )
41- if ( out . toString ( ) . includes ( 'FAILED' ) ) {
42- throw new Error ( out . toString ( ) )
31+ signtoolOptions : {
32+ certificateSha1 : process . env . SM_CODE_SIGNING_CERT_SHA1_HASH ,
33+ publisherName : process . env . SM_PUBLISHER_NAME ,
34+ signingHashAlgorithms : [ 'sha256' ] ,
35+ sign : keypair ? async function ( configuration ) {
36+ console . log ( 'Signing' , configuration )
37+ if ( configuration . path ) {
38+ try {
39+ const out = execSync (
40+ `smctl sign --keypair-alias=${ keypair } --input "${ String ( configuration . path ) } "`
41+ )
42+ if ( out . toString ( ) . includes ( 'FAILED' ) ) {
43+ throw new Error ( out . toString ( ) )
44+ }
45+ console . log ( out . toString ( ) )
46+ } catch ( e ) {
47+ console . error ( `Failed to sign ${ configuration . path } ` )
48+ console . error ( e )
49+ process . exit ( 1 )
4350 }
44- console . log ( out . toString ( ) )
45- } catch ( e ) {
46- console . error ( `Failed to sign ${ configuration . path } ` )
47- console . error ( e )
48- process . exit ( 1 )
4951 }
50- }
51- } : undefined ,
52+ } : undefined ,
53+ } ,
5254 } ,
5355 } ,
5456
0 commit comments