-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy path.goreleaser.yml
More file actions
96 lines (89 loc) · 2.48 KB
/
.goreleaser.yml
File metadata and controls
96 lines (89 loc) · 2.48 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
project_name: ant
version: 2
before:
hooks:
- mkdir -p completions
- sh -c "go run ./cmd/ant/main.go @completion bash > completions/ant.bash"
- sh -c "go run ./cmd/ant/main.go @completion zsh > completions/ant.zsh"
- sh -c "go run ./cmd/ant/main.go @completion fish > completions/ant.fish"
- sh -c "go run ./cmd/ant/main.go @manpages -o man"
builds:
- id: macos
goos: [darwin]
goarch: [amd64, arm64]
binary: '{{ .ProjectName }}'
main: ./cmd/ant/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
- id: linux
goos: [linux]
goarch: ['386', arm, amd64, arm64]
env:
- CGO_ENABLED=0
binary: '{{ .ProjectName }}'
main: ./cmd/ant/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
- id: windows
goos: [windows]
goarch: ['386', amd64, arm64]
binary: '{{ .ProjectName }}'
main: ./cmd/ant/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
archives:
- id: linux-archive
ids: [linux]
name_template: '{{ .ProjectName }}_{{ .Version }}_linux_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
formats: [tar.gz]
files:
- completions/*
- man/*/*
- id: macos-archive
ids: [macos]
name_template: '{{ .ProjectName }}_{{ .Version }}_macos_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
formats: [zip]
files:
- completions/*
- man/*/*
- id: windows-archive
ids: [windows]
name_template: '{{ .ProjectName }}_{{ .Version }}_windows_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
formats: [zip]
files:
- completions/*
- man/*/*
snapshot:
version_template: '{{ .Tag }}-next'
nfpms:
- license: MIT
maintainer: support@anthropic.com
bindir: /usr
formats:
- apk
- deb
- rpm
- termux.deb
- archlinux
contents:
- src: man/man1/*.1.gz
dst: /usr/share/man/man1/
homebrew_casks:
- name: ant
repository:
owner: anthropics
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
homepage: anthropic.com
description: CLI for the Claude Platform
license: MIT
binary: "ant"
completions:
bash: "completions/ant.bash"
zsh: "completions/ant.zsh"
fish: "completions/ant.fish"
manpages:
- man/man1/ant.1.gz