Skip to content

Commit c8deebd

Browse files
committed
one more try
1 parent 7b16e7a commit c8deebd

File tree

1 file changed

+9
-4
lines changed
  • packages/electron-chrome-extensions/script/native-messaging-host

1 file changed

+9
-4
lines changed

packages/electron-chrome-extensions/script/native-messaging-host/build.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff 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 })

0 commit comments

Comments
 (0)