Coder Social home page Coder Social logo

packaging's Introduction

packaging

A collection of scripts for easing packaging.

gem2pkg

A script easing the generation of ruby gems into native packages.

Note: Invoke as gem2deb or gem2rpm depending on the target package format.

License

MIT

Requires

bash >= 4, fpm, gem

Usage

gem2deb <options> gem [-v <version>] [gem -v [<version>]  [..]]

Options:
  --help              This message
  --dest-dir <path>   Set the destination directory for the finished packages
  --sub-dir  <dir>    Set the subdirectory under ~/gem2deb
                      for saving the packages
  --prerelease        Consider prerelases of gems
  gem -v |--version   Set the version of the gem to install.
                      Gem can either be file or the name of the gem.
                      The version switch is ignored if pointing to a gem file.

Examples

Create debian package for asciidoctor gem and its dependencies. Packages are saved under ~/var/gem2deb/<codename>
gem2deb asciidoctor
Create rpm package for rspec version 3.5.0. Packages are saved under ~/var/gem2deb/<codename>
gem2rpm rspec -v 3.5.0
Create debian package for asciidoctor-pdf taking into consideration prerelease versions.
gem2deb --prerelease asciidoctor-pdf
Create multiple rpm packages where asciidoctor will use the latest version but rspec takes version 3.5.0.
gem2rpm asciidoctor rspec -v 3.5.0
Create rpm package for rspec version 3.5.0. Packages are saved under ~/my-rubygems/<codename>
gem2rpm --dest-dir ~/my-rubygems rspec -v 3.5.0
Create debian package for rspec version 3.5.0 and ascidoctor from a previously downloaded gem file. Packages are saved under ~/my-rubygems/rspec/<codename>
gem2deb --sub-dir rspec --dest-dir ~/my-rubygems rspec -v 3.5.0 ~/asciidoctor-1.5.5.gem

Rake

A collection of rake scripts to help with the build of various useful tools missing from the distribution repos.

License

MIT

Requires

ruby, rake

The scripts are organzied into two sections:

bootstrap

Builds and installs the necessary tools for packaging the tasks grouped under package

package

Builds packages for Debian or RedHat based operating systems.

Usage

Show all tasks by invoking rake -T
rake bootstrap:fpm        # Build and deploy the fpm command
rake package:butteraugli  # Build the butteraugli image comparison tool
rake package:guetzli      # Build the guetzli jpeg compressor
rake package:zopflipng    # Build the zopflipng PNG optimizer

Examples

Build and install the fpm dependency as native packages
rake bootstrap:fpm
Build the butteraugli image comparison tool. Saves the packages under ../packages/<codename>
rake package:butteraugli

packaging's People

Contributors

uroesch avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.