More descriptive Node.js install
This commit is contained in:
parent
73545de0cb
commit
367c3114c0
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue