before:
  hooks:
    - go mod tidy
builds:
-
  goos:
  - freebsd
  - netbsd
  - openbsd
  - dragonfly
  - linux
  - darwin
  - windows
  goarch:
  - 386
  - amd64
  - arm
  - arm64
  - mips
  - mipsle
  - mips64
  - mips64le
  goarm:
  - 5
  - 6
  - 7
  gomips:
  - softfloat
  - hardfloat
  env:
  - CGO_ENABLED=0
  flags:
  - -trimpath
  ignore:
  -
    goos: windows
    goarch: arm64
archives:
-
  format_overrides:
  -
    goos: windows
    format: zip
  files:
  - LICENSE
  - README.md
checksum:
  name_template: 'checksums.txt'
release:
  name_template: "{{.ProjectName}}-v{{.Version}}"
brews:
-
  tap:
    owner: nextdns
    name: homebrew-tap
  commit_author:
    name: NextDNS Team
    email: team@nextdns.io
  homepage: https://nextdns.io
  description: NextDNS DNS/53 to DoH Proxy
  caveats: "To install NextDNS, run the following command:

    sudo nextdns install --profile <your_profile_id>

Then setup your DNS manually to 127.0.0.1 or by running:

    sudo nextdns activate
"
nfpms:
  -
    vendor: NextDNS Inc
    homepage: https://nextdns.io
    maintainer: NextDNS Team <team@nextdns.io>
    description: NextDNS DNS/53 to DoH Proxy
    license: MIT
    formats:
      - deb
      - rpm
      - apk
    bindir: /usr/bin
    dependencies:
      - curl
    overrides:
      deb:
        scripts:
          postinstall: ".goreleaser/deb/postinst"
          preremove: ".goreleaser/deb/prerm"
      rpm:
        scripts:
          postinstall: ".goreleaser/rpm/post"
          preremove: ".goreleaser/rpm/preun"
      apk:
        scripts:
          postinstall: ".goreleaser/apk/post-install"
          preremove: ".goreleaser/apk/pre-deinstall"
    apk:
      scripts:
          postupgrade: ".goreleaser/apk/post-upgrade"
changelog:
  sort: asc
  filters:
    exclude:
    - '^docs:'
    - '^test:'
