1- # This is an example .goreleaser.yml file with some sensible defaults.
2- # Make sure to check the documentation at https://goreleaser.com
1+ version : 2
2+
33before :
44 hooks :
55 - go mod tidy
@@ -11,15 +11,20 @@ builds:
1111 - env :
1212 - CGO_ENABLED=0
1313 ldflags :
14- - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
14+ - -s
15+ - -w
16+ - -X main.VERSION={{.Version}}
17+ - -X main.LASTMOD={{.Timestamp}}
18+ - -X main.COMMIT={{.ShortCommit}}
19+ - -X main.BUILTBY=goreleaser
1520 main : ./cmd/fflint/main.go
1621 goos :
1722 - linux
1823 - windows
1924 - darwin
2025
2126archives :
22- - format : tar.gz
27+ - formats : [ tar.gz ]
2328 # this name template makes the OS and Arch compatible with the results of uname.
2429 name_template : >-
2530 {{ .ProjectName }}_
@@ -31,19 +36,42 @@ archives:
3136 # use zip for windows archives
3237 format_overrides :
3338 - goos : windows
34- format : zip
39+ formats : [ zip ]
3540checksum :
3641 name_template : ' checksums.txt'
3742snapshot :
38- name_template : " {{ incpatch .Version }}-next"
43+ version_template : " {{ incpatch .Version }}-next"
3944changelog :
4045 sort : asc
4146 filters :
4247 exclude :
4348 - ' ^docs:'
4449 - ' ^test:'
4550
46- # The lines beneath this are called `modelines`. See `:help modeline`
47- # Feel free to remove those if you don't want/use them.
48- # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
49- # vim: set ts=2 sw=2 tw=0 fo=cnqoj
51+ homebrew_casks :
52+ - name : fflint
53+ binaries :
54+ - fflint
55+ manpages :
56+ - manpages/fflint.1.gz
57+ completions :
58+ bash : completions/fflint.bash
59+ zsh : completions/fflint.zsh
60+ fish : completions/fflint.fish
61+ directory : Casks
62+ skip_upload : false
63+ description : " File formt linter"
64+ homepage : " https://www.fflint.dev/"
65+ license : " MIT"
66+ repository :
67+ owner : FileFormatInfo
68+ name : homebrew-tap
69+ branch : main
70+ token : " {{ .Env.HOMEBREW_TOKEN }}"
71+ hooks :
72+ post :
73+ install : |
74+ if OS.mac?
75+ system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/fflint"]
76+ end
77+
0 commit comments