Skip to content

Commit 7bde56f

Browse files
authored
Merge pull request #858 from microsoft/tyriar/850
Ensure 755 permissions on prebuild spawn-helper
2 parents 772905e + d08cd36 commit 7bde56f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/prebuild.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,12 @@ if (!fs.existsSync(PREBUILD_DIR)) {
3131
process.exit(1);
3232
}
3333

34+
// Ensure spawn-helper has execute permission (may be stripped by npm pack)
35+
if (process.platform === 'darwin') {
36+
const spawnHelper = path.join(PREBUILD_DIR, 'spawn-helper');
37+
if (fs.existsSync(spawnHelper)) {
38+
fs.chmodSync(spawnHelper, 0o755);
39+
}
40+
}
41+
3442
process.exit(0);

0 commit comments

Comments
 (0)