This repository has been archived by the owner on Nov 1, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create a release using goreleaser add dist folder to ignore list add self documented Makefile
- Loading branch information
1 parent
00aa748
commit 4c096fc
Showing
4 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ _testmain.go | |
*.exe | ||
*.test | ||
*.prof | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
build: | ||
ldflags: -s -w -X main.Version={{.Version}} | ||
binary: trawl | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- darwin | ||
goarch: | ||
- amd64 | ||
archive: | ||
format: tar.gz | ||
snapshot: | ||
name_template: "{{.Commit}}" | ||
fpm: | ||
vendor: Rob Phoenix | ||
homepage: https://github.com/robphoenix/trawl | ||
maintainer: Rob Phoenix | ||
description: A strong fishing net for dragging along the sea bottom to collect IP addresses and similar flotsam & jetsam | ||
formats: | ||
- deb | ||
bindir: /usr/local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
snapshot: # create a snapshot | ||
goreleaser --snapshot --rm-dist --skip-validate --skip-publish | ||
|
||
release: # create a release build | ||
goreleaser --rm-dist | ||
|
||
install: # just compile and install | ||
go install | ||
|
||
# Absolutely awesome: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html | ||
help: | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
.DEFAULT_GOAL := help |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters