-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
83 lines (75 loc) · 2.35 KB
/
Copy path.goreleaser.yaml
File metadata and controls
83 lines (75 loc) · 2.35 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
# GoReleaser config — produces prebuilt binaries so users don't need Go.
# Cut a release by pushing a tag: git tag v0.1.0 && git push origin v0.1.0
# The release workflow (.github/workflows/release.yml) runs GoReleaser on tags.
version: 2
project_name: limitping
before:
hooks:
- go mod tidy
builds:
- id: limitping
main: ./cmd/limitping
binary: limitping
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w -X github.com/wavever/CCLimitPing/internal/cli.Version={{ .Version }}
archives:
- id: limitping
# No version in the name, so https://github.com/.../releases/latest/download/
# URLs are stable (used by install.sh).
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
formats: [tar.gz]
format_overrides:
- goos: windows
formats: [zip]
files:
- README.md
- README.zh-CN.md
- LICENSE
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
- "^ci:"
release:
github:
owner: wavever
name: CCLimitPing
# Homebrew tap (cask). Enabled, but auto-skips the push until you wire up the tap,
# so it won't break a release before then. To turn it on:
# 1. Create a public repo: github.com/wavever/homebrew-tap
# 2. Create a fine-grained PAT with Contents:write on that repo and add it as
# the CCLimitPing repo secret HOMEBREW_TAP_GITHUB_TOKEN (the release
# workflow already forwards it).
# Once that secret exists, the next tagged release publishes the cask and
# `brew install wavever/tap/limitping` works. No token => cask is built but
# not pushed.
homebrew_casks:
- name: limitping
repository:
owner: wavever
name: homebrew-tap
token: '{{ index .Env "HOMEBREW_TAP_GITHUB_TOKEN" }}'
skip_upload: '{{ if index .Env "HOMEBREW_TAP_GITHUB_TOKEN" }}false{{ else }}true{{ end }}'
homepage: "https://github.com/wavever/CCLimitPing"
description: "Keep Claude Code / Codex rate-limit windows back-to-back"
# Unsigned binary: strip the macOS quarantine flag on install so it runs.
hooks:
post:
install: |
if OS.mac?
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/limitping"]
end