More descriptive Node.js install

This commit is contained in:
Wilson Lin 2020-01-06 18:58:41 +11:00
parent 73545de0cb
commit 367c3114c0
1 changed files with 4 additions and 1 deletions

View File

@ -1,8 +1,11 @@
const childProcess = require('child_process');
const fs = require('fs');
const pack = require('./package');
const path = require('path');
const request = require('request');
console.log(`Installing Node.js hyperbuild ${pack.version}...`);
const build = () => {
console.log(`Building from source...`);
const {status, signal, error} = childProcess.spawnSync(`neon`, [`build`, `--release`], {
@ -22,7 +25,7 @@ const build = () => {
const binaryPath = path.join(__dirname, "native", "index.node");
const binaryName = [
require('./package').version,
pack.version,
'-',
[process.platform, {
darwin: 'macos',