Skip to content

Commit

Permalink
build system
Browse files Browse the repository at this point in the history
  • Loading branch information
5amu committed Jul 5, 2022
1 parent b65f0f0 commit 7448ff9
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/dist
57 changes: 57 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
project_name: dnshunter

before:
hooks:
- go mod download

builds:
-
main: ./cmd/dnshunter/
binary: dnshunter
goos:
- windows
- linux
- darwin
- freebsd
goarch:
- amd64
- 386
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
- goos: darwin
goarch: arm
- goos: windows
goarch: 386
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: freebsd
goarch: arm

archives:
-
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
replacements:
darwin: macos
386: i386
wrap_in_directory: true
format: zip

checksum:
name_template: "{{ .ProjectName }}_checksums.txt"

changelog:
sort: desc
filters:
exclude:
- '^MERGE'
- "{{ .Tag }}"

release:
github:
owner: 5amu
name: dnshunter

0 comments on commit 7448ff9

Please sign in to comment.