Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
fix node.exe placement for node 12
Browse files Browse the repository at this point in the history
  • Loading branch information
igorklopov committed May 6, 2019
1 parent b5a1eec commit 00c3a74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ async function compileOnWindows (nodeVersion, targetArch) {
const promise = spawn('cmd', args, { cwd: nodePath });
progress(promise, thresholds('vcbuild', nodeVersion));
await promise;
return path.join(nodePath, 'Release/node.exe');
if (major <= 10) return path.join(nodePath, 'Release/node.exe');
return path.join(nodePath, 'out/Release/node.exe');
}

async function compileOnUnix (nodeVersion, targetArch) {
Expand Down

0 comments on commit 00c3a74

Please sign in to comment.