Easily build binaries
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fixtures Various tweaks Apr 15, 2016
.editorconfig Meta tweaks Jun 16, 2017
.gitattributes Meta tweaks Sep 8, 2016
.gitignore Bump dependencies Sep 8, 2016
.travis.yml Bump dependencies and require Node.js 6 (#14) Oct 10, 2018
index.js `.dir` => `.directory` Jun 17, 2017
license Meta tweaks Jun 16, 2017
package.json Bump dependencies and require Node.js 6 (#14) Oct 10, 2018
readme.md `.dir` => `.directory` Jun 17, 2017
test.js Fix tests Jun 17, 2017

readme.md

bin-build Build Status

Easily build binaries

Install

$ npm install --save bin-build

Usage

const binBuild = require('bin-build');

binBuild.url('http://www.lcdf.org/gifsicle/gifsicle-1.80.tar.gz', [
	'./configure --disable-gifview --disable-gifdiff',
	'make install'
]).then(() => {
	console.log('gifsicle built successfully');
});

binBuild.file('gifsicle-1.80.tar.gz', [
	'./configure --disable-gifview --disable-gifdiff',
	'make install'
]).then(() => {
	console.log('gifsicle built successfully');
});

API

binBuild.directory(directory, commands)

directory

Type: string

Path to a directory containing the source code.

commands

Type: Array

Commands to run when building.

binBuild.file(file, commands, [options])

file

Type: string

Path to a archive file containing the source code.

commands

Type: Array

Commands to run when building.

options

Type: Object

strip

Type: number
Default: 1

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

binBuild.url(url, commands, [options])

url

Type: string

URL to a archive file containing the source code.

commands

Type: Array

Commands to run when building.

options

Type: Object

strip

Type: number
Default: 1

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

License

MIT © Kevin Mårtensson