Skip to content

Commit

Permalink
Release rpm and deb packages
Browse files Browse the repository at this point in the history
  • Loading branch information
aswinkarthik committed Apr 28, 2018
1 parent 7c40eef commit 284dc3b
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sudo: required
language: go
go:
- 1.10.x
Expand All @@ -7,4 +8,4 @@ install:
script:
- go test -v ./...
after_success:
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
- bash -l ./release.sh
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,34 @@ $ csvdiff run --base base.csv --delta delta.csv

## Installation

- For MacOS

```bash
curl -sL https://github.com/aswinkarthik93/csvdiff/releases/download/v0.1.0/csvdiff_0.1.0_darwin_amd64.tar.gz | tar xfz -
```

- For centos

```bash
yum install https://github.com/aswinkarthik93/csvdiff/releases/download/v0.1.1/csvdiff_0.1.1_linux_64-bit.rpm
```

- For debian

```
curl -sL https://github.com/aswinkarthik93/csvdiff/releases/download/v0.1.1/csvdiff_0.1.1_linux_64-bit.deb | dpkg --install -
```

- For Linux

```bash
curl -sL https://github.com/aswinkarthik93/csvdiff/releases/download/v0.1.0/csvdiff_0.1.0_linux_amd64.tar.gz | tar xfz -
```

- For [Windows](https://github.com/aswinkarthik93/csvdiff/releases/download/v0.1.0/csvdiff_0.1.0_windows_amd64.tar.gz)

- Build using Go

```
go get -u github.com/aswinkarthik93/csvdiff
```
Expand Down
16 changes: 15 additions & 1 deletion goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,18 @@ builds:
- darwin
- linux
goarch:
- amd64
- amd64
nfpm:
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
amd64: 64-bit
386: 32-bit
darwin: macOS
linux: linux
homepage: https://github.com/aswinkarthik93/csvdiff
maintainer: aswinkarthik93
description: A Blazingly fast diff tool for comparing csv files.
license: MIT
formats:
- deb
- rpm
6 changes: 6 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -e

sudo apt-get update -y && sudo apt-get install rpm -y
test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash

0 comments on commit 284dc3b

Please sign in to comment.