Skip to content

Commit

Permalink
Configure brew
Browse files Browse the repository at this point in the history
  • Loading branch information
Sung Won Cho committed Sep 2, 2018
1 parent 73c5c9a commit 4355b0c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .goreleaser.yml
Expand Up @@ -23,6 +23,8 @@ builds:
- 386

brew:
name: dnote
folder: Formula
github:
owner: dnote
name: homebrew-dnote
Expand All @@ -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
Expand Down

0 comments on commit 4355b0c

Please sign in to comment.