# This is an example goreleaser.yaml file with some sane defaults. # Make sure to check the documentation at http://goreleaser.com before: hooks: # You may remove this if you don't use go modules. - go mod download # you may remove this if you don't need go generate # - go generate ./... builds: - env: - CGO_ENABLED=0 goarch: - amd64 - arm64 # - i386 # does anyone care about i386? goos: - linux - windows - darwin ldflags: - -s -w -X main.version=v{{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser changelog: filters: exclude: - '^docs:' - '^test:' sort: asc checksum: name_template: checksums.txt # https://goreleaser.com/customization/publish/homebrew_casks/ homebrew_casks: - binaries: - grabbit caveats: | Unfortunately, Apple wants to charge developers $100/year to distribute their apps without a big scary "... the developer cannot be verified" warning. I'm not willing to pay that to give away free apps. See https://www.macworld.com/article/3140183/how-to-install-an-app-in-macos-sierra-thats-not-signed-by-a-developer.html to work around that description: Grab images from subreddits! Useful for getting interesting wallpapers generate_completions_from_executable: args: - completion executable: grabbit shells: - bash - fish - zsh homepage: https://github.com/bbkane/grabbit hooks: post: install: | system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/grabbit"] if OS.mac? repository: name: homebrew-tap owner: bbkane # Optionally a token can be provided, if it differs from the token provided to GoReleaser token: '{{ .Env.KEY_GITHUB_GORELEASER_TO_HOMEBREW_TAP }}' # https://goreleaser.com/customization/scoop/ scoops: - description: A small single-binary CLI to grab images from Reddit homepage: https://github.com/bbkane/grabbit license: MIT repository: name: scoop-bucket owner: bbkane token: '{{ .Env.KEY_GITHUB_GORELEASER_TO_HOMEBREW_TAP }}' version: 2