bin-build

Easily build binaries

bin-build

Easily build binaries

$ npm install --save bin-build
var BinBuild = require('bin-build');
 
var build = new BinBuild()
    .src('http://www.lcdf.org/gifsicle/gifsicle-1.80.tar.gz')
    .cmd('./configure --disable-gifview --disable-gifdiff')
    .cmd('make install');
 
build.run(function (err) {
    console.log('gifsicle built successfully');
});

Creates a new BinBuild instance.

Type: number

Strip a number of leading paths from file names on extraction.

Type: string

Accepts a URL to a archive containing the source code, a path to an archive or a path to a directory containing the source code.

Type: string

Add a command to run when building.

Type: function

Runs the build and returns an error if something has gone wrong

MIT © Kevin Mårtensson