initial code (#6)

* initial code commit
This commit is contained in:
l3uddz
2021-02-14 16:18:26 +00:00
committed by GitHub
parent 3f55336fbd
commit ce3807b819
53 changed files with 3694 additions and 0 deletions

45
.goreleaser.yml Normal file
View File

@@ -0,0 +1,45 @@
# https://goreleaser.com
project_name: nabarr
# Build
builds:
-
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
main: ./cmd/nabarr
goarch:
- amd64
ldflags:
- -s -w
- -X "main.Version={{ .Version }}"
- -X "main.GitCommit={{ .ShortCommit }}"
- -X "main.Timestamp={{ .Timestamp }}"
flags:
- -trimpath
# Archive
archives:
-
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format: "binary"
# Checksum
checksum:
name_template: "checksums.txt"
algorithm: sha512
# Snapshot
snapshot:
name_template: "{{ .Major }}.{{ .Minor }}.{{ .Patch }}-dev+{{ .ShortCommit }}"
# Changelog
changelog:
filters:
exclude:
- "^docs:"
- "^test:"
- "^Merge branch"