File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 120
120
}
121
121
],
122
122
"icon" : " build/icon.ico" ,
123
- "publisherName" : " Kandra Labs, Inc."
123
+ "publisherName" : " Kandra Labs, Inc." ,
124
+ "sign" : " ./scripts/win-sign.js" ,
125
+ "signingHashAlgorithms" : [
126
+ " sha256"
127
+ ]
124
128
},
125
129
"msi" : {
126
130
"artifactName" : " ${productName}-${version}-${arch}.${ext}"
308
312
},
309
313
{
310
314
"files" : [
315
+ " scripts/win-sign.js" ,
311
316
" tests/**/*.js"
312
317
],
313
318
"parserOptions" : {
Original file line number Diff line number Diff line change
1
+ "use strict" ;
2
+
3
+ const childProcess = require ( "node:child_process" ) ;
4
+ const { promisify} = require ( "node:util" ) ;
5
+
6
+ const exec = promisify ( childProcess . exec ) ;
7
+
8
+ exports . default = async ( { path, hash} ) => {
9
+ await exec (
10
+ `powershell.exe Invoke-TrustedSigning \
11
+ -Endpoint https://eus.codesigning.azure.net/ \
12
+ -CodeSigningAccountName kandralabs \
13
+ -CertificateProfileName kandralabs \
14
+ -Files '${ path } ' \
15
+ -FileDigest '${ hash } ' \
16
+ -TimestampRfc3161 http://timestamp.acs.microsoft.com \
17
+ -TimestampDigest '${ hash } '` ,
18
+ { stdio : "inherit" } ,
19
+ ) ;
20
+ } ;
You can’t perform that action at this time.
0 commit comments