returns the path of produced binary

This commit is contained in:
igorklopov 2016-08-10 11:51:56 +03:00
parent d28fd16c4a
commit 5a2ab2f401

View File

@ -18,6 +18,7 @@ async function compileOnWindows (target) {
args.push('/c', 'vcbuild.bat', target, 'nosign');
await chipo.spawn('cmd', args,
{ stdio: 'inherit', cwd: nodePath });
return path.join(nodePath, 'Release/node.exe');
}
async function compileOnUnix (target) {
@ -29,6 +30,7 @@ async function compileOnUnix (target) {
{ stdio: 'inherit', cwd: nodePath });
await chipo.spawn('make',
{ stdio: 'inherit', cwd: nodePath });
return path.join(nodePath, 'out/Release/node');
}
async function main () {