File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
packages/electron-chrome-extensions/script/native-messaging-host Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,15 @@ async function createSEA() {
2424 }
2525
2626 console . info ( `Building ${ exeName } …` )
27- await exec (
28- `npx postject ${ basePath } ${ exeName } NODE_SEA_BLOB ${ basePath } ${ seaBlobName } --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 --macho-segment-name NODE_SEA` ,
29- { cwd : outDir } ,
30- )
27+ const buildCmd = [
28+ 'npx postject' ,
29+ `${ basePath } ${ exeName } ` ,
30+ 'NODE_SEA_BLOB' ,
31+ `${ basePath } ${ seaBlobName } ` ,
32+ '--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2' ,
33+ ...( process . platform === 'darwin' ? [ '--macho-segment-name NODE_SEA' ] : [ ] ) ,
34+ ]
35+ await exec ( buildCmd . join ( ' ' ) , { cwd : outDir } )
3136
3237 if ( process . platform === 'darwin' ) {
3338 await exec ( `codesign --sign - ${ exeName } ` , { cwd : outDir } )
You can’t perform that action at this time.
0 commit comments