From 4355b0c75b8a8f7eaaa9c422366ebccc95726ef0 Mon Sep 17 00:00:00 2001 From: Sung Won Cho Date: Sun, 2 Sep 2018 17:07:16 +1000 Subject: [PATCH] Configure brew --- .goreleaser.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 72e0e6fb..9a37efab 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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