bin-build

Easily build binaries

MIT 13 个版本
安装
npm install bin-build
yarn add bin-build
pnpm add bin-build
bun add bin-build
README

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

版本列表
3.0.0 2017-06-17
2.2.0 2015-10-22
2.1.3 2015-10-17
2.1.2 2015-06-16
2.1.1 2015-01-16
2.1.0 2014-10-22
2.0.0 2014-10-19
1.1.0 2014-10-19
1.0.1 2014-09-01
1.0.0 2014-08-20
0.2.0 2014-08-09
0.1.1 2014-04-29
0.1.0 2014-04-25