diff --git a/build/gulpfile.reh.js b/build/gulpfile.reh.js index 2e90cd11a83..387a54cbbfe 100644 --- a/build/gulpfile.reh.js +++ b/build/gulpfile.reh.js @@ -68,7 +68,8 @@ BUILD_TARGETS.forEach(({ platform, arch }) => { })); }); -const defaultNodeTask = gulp.task(`node-${process.platform}-${process.arch}`); +const arch = process.platform === 'darwin' ? 'x64' : process.arch; +const defaultNodeTask = gulp.task(`node-${process.platform}-${arch}`); if (defaultNodeTask) { gulp.task(task.define('node', defaultNodeTask)); diff --git a/build/lib/node.ts b/build/lib/node.ts index 64397034461..6ac45ebb1f8 100644 --- a/build/lib/node.ts +++ b/build/lib/node.ts @@ -10,7 +10,11 @@ const root = path.dirname(path.dirname(__dirname)); const yarnrcPath = path.join(root, 'remote', '.yarnrc'); const yarnrc = fs.readFileSync(yarnrcPath, 'utf8'); const version = /^target\s+"([^"]+)"$/m.exec(yarnrc)![1]; -const node = process.platform === 'win32' ? 'node.exe' : 'node'; -const nodePath = path.join(root, '.build', 'node', `v${version}`, `${process.platform}-${process.arch}`, node); -console.log(nodePath); \ No newline at end of file +const platform = process.platform; +const arch = platform === 'darwin' ? 'x64' : process.arch; + +const node = platform === 'win32' ? 'node.exe' : 'node'; +const nodePath = path.join(root, '.build', 'node', `v${version}`, `${platform}-${arch}`, node); + +console.log(nodePath);