File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 11import { join } from "node:path" ;
22import { rm } from "node:fs/promises" ;
33import { platform , arch } from "node:os" ;
4+ import { execSync } from "node:child_process" ;
45
56import dotEnv from "dotenv" ;
67import yargs from "minimist" ;
@@ -30,6 +31,19 @@ function build({ x64, arm64 } = options) {
3031 notarize : args . noSign ? false : true ,
3132 identity : args . noSign ? null : undefined ,
3233 } ,
34+ win : {
35+ target : "nsis" ,
36+ forceCodeSigning : args . noSign ? false : true ,
37+ signtoolOptions : {
38+ sign : ( configuration ) => {
39+ if ( configuration . path ) {
40+ execSync ( `smctl.exe sign --keypair-alias=${ process . env . KEYPAIR_ALIAS } --input "${ String ( configuration . path ) } "` ) ;
41+ }
42+ } ,
43+ signingHashAlgorithms : [ "sha256" ] ,
44+ rfc3161TimeStampServer : "http://timestamp.digicert.com" ,
45+ } ,
46+ } ,
3347 fileAssociations : [
3448 {
3549 ext : "bjseditor" ,
You can’t perform that action at this time.
0 commit comments