An open API service indexing awesome lists of open source software.

https://github.com/sagikazarmark/binbrew

Homebrew, but with binaries
https://github.com/sagikazarmark/binbrew

Last synced: 4 months ago
JSON representation

Homebrew, but with binaries

Awesome Lists containing this project

README

          

# Binbrew

[![Go Version](https://img.shields.io/badge/go%20version-%3E=1.11.4-orange.svg?style=flat-square)](https://github.com/sagikazarmark/binbrew)
[![CircleCI](https://circleci.com/gh/sagikazarmark/binbrew.svg?style=svg)](https://circleci.com/gh/sagikazarmark/binbrew)
[![Go Report Card](https://goreportcard.com/badge/github.com/sagikazarmark/binbrew?style=flat-square)](https://goreportcard.com/report/github.com/sagikazarmark/binbrew)
[![GolangCI](https://golangci.com/badges/github.com/sagikazarmark/binbrew.svg)](https://golangci.com/r/github.com/sagikazarmark/binbrew)
[![GoDoc](http://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square)](https://godoc.org/github.com/sagikazarmark/binbrew)

Binbrew installs pre-built binary dependencies (from Github).
It's primary use case is to help setting up development environments and
allow to use the same tools in CI environments as well.

## Installation

Add the following to your installation scripts:

```bash
export BINBREW_VERSION=0.1.0
curl -sfL https://git.io/binbrew | bash -s -- -b ./bin/ v${BINBREW_VERSION}
```

To install the latest version simply omit the version:

```bash
curl -sfL https://git.io/binbrew | bash -s -- -b ./bin/
```

*Note:* Binbrew is still under heavy development, so it's recommended to lock onto a specific version.

Use it in your Makefile:

```makefile
BINBREW_VERSION = 0.1.0
bin/binbrew: bin/binbrew-${BINBREW_VERSION}
@ln -sf binbrew-${BINBREW_VERSION} bin/binbrew
bin/binbrew-${BINBREW_VERSION}:
@mkdir -p bin
curl -sfL https://git.io/binbrew | bash -s -- -b ./bin/ v${BINBREW_VERSION}
@mv bin/binbrew $@
```

## Quick start

In order to install binaries run the following command:

```bash
binbrew install dep@0.5.0
```

You can install multiple binaries with a single command:

```bash
binbrew install dep@0.5.0 protoc@3.6.1
```

## Usage

```
Binary installer

Usage:
binbrew [command]

Available Commands:
help Help about any command
install Install one or more binaries

Flags:
-h, --help help for binbrew
--version version for binbrew

Use "binbrew [command] --help" for more information about a command.
```

## License

The MIT License (MIT). Please see [License File](LICENSE) for more information.