returns the path of produced binary
This commit is contained in:
parent
d28fd16c4a
commit
5a2ab2f401
@ -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 () {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user