Skip to content

Commit

Permalink
Merge pull request #1141 from Dyalog/node_gyp_fix
Browse files Browse the repository at this point in the history
Remove node_gyp_bins after build
  • Loading branch information
e9gille authored Sep 18, 2023
2 parents 48d107f + 82bdbd8 commit e788226
Show file tree
Hide file tree
Showing 3 changed files with 670 additions and 122 deletions.
9 changes: 9 additions & 0 deletions mk
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ const pkg = (x, y, f) => {
ProductName: 'RIDE',
InternalName: 'RIDE',
},
afterPrune: [(buildPath, electronVersion, platform) => {
if (platform === 'darwin') {
const dirs = rq('glob').sync(
path.join(buildPath, 'node_modules/**/node_gyp_bins'),
{ onlyDirectories: true },
);
dirs.forEach((dir) => fs.rmSync(dir, { recursive: true, force: true }));
}
}],
}).then(() => {
const d = `_/${pj.name}/${pj.productName}-${x}-${y}`;
rm(`${d}/version`);
Expand Down
Loading

0 comments on commit e788226

Please sign in to comment.