Socket
Socket
Sign inDemoInstall

nobin-debian-installer

Package Overview
Dependencies
31
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nobin-debian-installer

Create deb packages with no binary dependencies


Version published
Weekly downloads
13
increased by550%
Maintainers
1
Install size
3.38 MB
Created
Weekly downloads
 

Readme

Source

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'), // needed for extracting project info
  info: {
    rev: '512', // optional revision number
    arch: 'amd64', // optional architecture type
    name: 'my-package', // optional package name
    depends: 'libc6 (>= 2.4)', // optional dependency list
    targetDir: './dist', // optional folder where to build the .deb package
    scripts: {
      preinst: './deb/scripts/preinst', // optional pre install script
      postinst: './deb/scripts/postinst', // optional post install script
      prerm: './deb/scripts/prerm', // optional pre remove script
      postrm: './deb/scripts/postrm', // optional post remove script
    }
  }
}

var files = [{
  src: ['src/**', '!tests/**'],
  dest: '/srv/myproject',
  cwd: './server',
  expand: true
}, { // add configuration files (init scripts, logrotate, systemd, etc...)
  src: ['**'],
  dest: '/etc',
  cwd: './config',
  expand: true
}]

function callback () {
  console.log('done!');
}

// magic
deb.pack(definition, files, callback)

License

MIT

Keywords

FAQs

Last updated on 20 May 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc