Configure brew

This commit is contained in:
Sung Won Cho 2018-09-02 17:07:16 +10:00
commit 4355b0c75b

View file

@ -23,6 +23,8 @@ builds:
- 386
brew:
name: dnote
folder: Formula
github:
owner: dnote
name: homebrew-dnote
@ -31,6 +33,19 @@ brew:
email: mikeswcho@gmail.com
homepage: https://dnote.io
description: Capture your learning without leaving the command line
dependencies:
- go
- dep
install: |
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/dnote/cli").install buildpath.children
cd "src/github.com/dnote/cli" do
system "dep", "ensure"
system "go", "build", "-ldflags", "-X main.apiEndpoint=https://api.dnote.io", "-o", bin/"dnote"
end
test: |
system "${bin}/dnote --version"
changelog:
sort: asc