mirror of https://github.com/schollz/croc.git
Add publishing to homebrew repository (#128)
This commit is contained in:
parent
ae6ce06836
commit
f5e1bab6b5
|
@ -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/utils
|
||||||
- env GO111MODULE=on go test -v -cover github.com/schollz/croc/v6/src/comm
|
- 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
|
|
@ -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
|
## Usage
|
||||||
|
|
||||||
|
|
|
@ -62,3 +62,19 @@ archive:
|
||||||
files:
|
files:
|
||||||
- README.md
|
- README.md
|
||||||
- LICENSE
|
- 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"
|
Loading…
Reference in New Issue