Add publishing to homebrew repository (#128)

This commit is contained in:
meyermarcel 2019-05-10 15:11:14 +02:00 committed by Zack
parent ae6ce06836
commit f5e1bab6b5
3 changed files with 30 additions and 0 deletions

View File

@ -17,3 +17,10 @@ script:
- env GO111MODULE=on go test -v -cover github.com/schollz/croc/v6/src/utils
- env GO111MODULE=on go test -v -cover github.com/schollz/croc/v6/src/comm
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux

View File

@ -42,6 +42,13 @@ $ go get -v github.com/schollz/croc/v6
```
Or, on macOS you can install the latest release with [Homebrew](https://brew.sh/):
```
$ brew install schollz/tap/croc
```
## Usage

View File

@ -62,3 +62,19 @@ archive:
files:
- README.md
- LICENSE
brew:
github:
owner: schollz
name: homebrew-tap
folder: Formula
description: "croc is a tool that allows any two computers to simply and securely transfer files and folders."
homepage: "https://schollz.com/software/croc/"
install: |
bin.install "croc"
dependencies:
- caddy
test: |
system "#{bin}/croc --version"