-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
60 lines (60 loc) · 2.13 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# 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 ./...
# https://goreleaser.com/customization/homebrew/
brews:
- 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
directory: Formula
homepage: https://github.com/bbkane/grabbit
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://crontab.guru/#8_10_*_*_1
# https://docs.brew.sh/Formula-Cookbook#service-block-methods
# https://goreleaser.com/customization/homebrew/
# https://github.com/goreleaser/goreleaser/issues/3990
service: |
run [opt_bin/"grabbit", "grab"]
run_type :cron
cron "8 10 * * 1"
builds:
- env:
- CGO_ENABLED=0
goarch:
- amd64
# - 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/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 }}'