nobin-debian-installer
Create .deb packages from linux, windows, OSX with no binary dependencies.
its a grunt stripped version of sebestindragos/grunt-contrib-deb
Getting started
Installation:
npm install nobin-debian-installer --save-dev
Once installed, it may be executed with:
Usage
var deb = require('nobin-debian-installer')()
var definition = {
package: require('./package.json'),
info: {
rev: '512',
arch: 'amd64',
name: 'my-package'
targetDir: './dist',
scripts: {
preinst: './deb/scripts/preinst',
postinst: './deb/scripts/postinst',
prerm: './deb/scripts/prerm',
postrm: './deb/scripts/postrm',
}
}
}
var files = [{
src: ['src/**', '!tests/**'],
dest: '/srv/myproject',
cwd: './server',
expand: true
}, {
src: ['**'],
dest: '/etc',
cwd: './config',
expand: true
}]
function callback () {
console.log('done!');
}
deb.pack(definition, files, callback)
License
MIT