Skip to content

Commit

Permalink
Build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu committed Sep 28, 2020
1 parent 033330c commit a3b0f38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ brews:
owner: hbyio
name: cappa-tap
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
token: "{{ .GITHUB_TOKEN }}"
# token: "{{ .Env.GITHUB_TOKEN }}"

# Template for the url which is determined by the given Token (github or gitlab)
# Default for github is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
Expand Down Expand Up @@ -102,7 +102,7 @@ brews:
# Can be used to specify alternate downloads for devel or head releases.
# Default is empty.
custom_block: |
head "https://github.com/some/package.git"
head "https://github.com/hbyio/cappa.git"
...
# # Packages your package depends on.
Expand Down
15 changes: 2 additions & 13 deletions makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
# Add command
# cobra add download

# go run main.go download
APPNAME=cappa
darwin:
GOOS=darwin GOARCH=amd64 go build -o ./releases/darwin_amd64/${APPNAME} ${LDFLAGS} *.go

windows:
GOOS=windows GOARCH=amd64 go build -o ./releases/windows_amd64/${APPNAME}.exe ${LDFLAGS} *.go

release:
goreleaser --rm-dist

releasefake:
goreleaser release --skip-publish
build:
goreleaser --snapshot --skip-publish --rm-dist

test:
go test ./cmd/... -v

0 comments on commit a3b0f38

Please sign in to comment.