-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.goreleaser.yml
133 lines (121 loc) · 3.49 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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
version: 2
project_name: shcopy
env:
- GO111MODULE=on
- CGO_ENABLED=0
before:
hooks:
- go mod tidy
- rm -rf manpages
- mkdir manpages
- sh -c 'go run . --man | gzip -c >./manpages/{{ .ProjectName }}.1.gz'
builds:
- ldflags: -s -w -X main.ProjectName={{ .ProjectName }} -X main.Version=v{{ .Version }} -X main.CommitSHA={{ .ShortCommit }}
goos:
- linux
- darwin
- windows
- freebsd
- openbsd
- netbsd
goarch:
- amd64
- arm64
- "386"
- arm
- ppc64le
- riscv64
goarm:
- "7"
ignore:
- goos: windows
goarm: "7"
archives:
- format_overrides:
- goos: windows
format: zip
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- with .Arm}}v{{ . }}{{ end }}
files:
- README*
- LICENSE*
- manpages/*
nix:
- repository:
owner: aymanbagabas
name: nur
homepage: "https://github.com/aymanbagabas/{{ .ProjectName }}"
description: "Copy text to clipboard from anywhere using ANSI OSC 52 sequence"
license: mit
nfpms:
- vendor: aymanbagabas
homepage: "https://github.com/aymanbagabas/shcopy"
maintainer: "Ayman Bagabas <ayman.bagabas@gmail.com>"
description: "Copy text to clipboard from anywhere using ANSI OSC 52 sequence"
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
contents:
- src: ./manpages/{{ .ProjectName }}.1.gz
dst: /usr/share/man/man1/{{ .ProjectName }}.1.gz
brews:
- repository:
owner: "aymanbagabas"
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: "Ayman Bagabas"
email: "ayman.bagabas@gmail.com"
homepage: "https://github.com/aymanbagabas/shcopy"
description: "Copy text to clipboard from anywhere using ANSI OSC 52 sequence"
install: |-
bin.install "{{ .ProjectName }}"
man1.install "manpages/{{ .ProjectName }}.1.gz"
aurs:
- maintainers: ["Ayman Bagabas <ayman.bagabas@gmail.com>"]
description: "Copy text to clipboard from anywhere using ANSI OSC 52 sequence"
name: "{{ .ProjectName }}-bin"
homepage: "https://github.com/aymanbagabas/shcopy"
license: MIT
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://aur@aur.archlinux.org/{{ .ProjectName }}-bin.git"
package: |-
# bin
install -Dm755 "./{{ .ProjectName }}" "${pkgdir}/usr/bin/{{ .ProjectName }}"
# license
mkdir -p "${pkgdir}/usr/share/licenses/{{ .ProjectName }}/"
install -Dm644 ./LICENSE* "${pkgdir}/usr/share/licenses/{{ .ProjectName }}/"
# man pages
install -Dm644 "./manpages/{{ .ProjectName }}.1.gz" "${pkgdir}/usr/share/man/man1/{{ .ProjectName }}.1.gz"
scoops:
- repository:
owner: aymanbagabas
name: scoop-bucket
token: "{{ .Env.SCOOP_TAP_GITHUB_TOKEN }}"
commit_author:
name: "Ayman Bagabas"
email: "ayman.bagabas@gmail.com"
homepage: "https://github.com/aymanbagabas/shcopy"
description: "Copy text to clipboard from anywhere using ANSI OSC 52 sequence"
license: MIT
checksum:
name_template: "checksums.txt"
source:
enabled: true
snapshot:
name_template: "{{ incpatch .Version }}-snapshot"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"