-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
182 lines (172 loc) · 5.66 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
builds:
- main: ./cli
id: "cli"
binary: ./bin/autoproxy
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
- >-
{{- if eq .Os "darwin" }}
{{- if eq .Arch "amd64"}}CC=o64-clang{{- end }}
{{- if eq .Arch "arm64"}}CC=aarch64-apple-darwin20.2-clang{{- end }}
{{- end }}
{{- if eq .Os "windows" }}
{{- if eq .Arch "amd64" }}CC=x86_64-w64-mingw32-gcc{{- end }}
{{- end }}
flags:
- -mod=vendor
ldflags:
- -X github.com/SaahilNotSahil/iitj-autoproxy/pkg.Version={{ .Version }}
ignore:
- goos: windows
goarch: arm64
- main: ./daemon
id: "daemon"
binary: ./bin/autoproxyd
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
- >-
{{- if eq .Os "darwin" }}
{{- if eq .Arch "amd64"}}CC=o64-clang{{- end }}
{{- if eq .Arch "arm64"}}CC=aarch64-apple-darwin20.2-clang{{- end }}
{{- end }}
{{- if eq .Os "windows" }}
{{- if eq .Arch "amd64" }}CC=x86_64-w64-mingw32-gcc{{- end }}
{{- end }}
flags:
- -mod=vendor
ldflags:
- -X github.com/SaahilNotSahil/iitj-autoproxy/pkg.Version={{ .Version }}
ignore:
- goos: windows
goarch: arm64
checksum:
name_template: "checksums.txt"
nfpms:
- package_name: iitj-autoproxy
vendor: SaahilNotSahil
homepage: https://github.com/SaahilNotSahil/iitj-autoproxy
maintainer: Saahil Bhavsar <[email protected]>
license: MIT
formats:
- deb
- archlinux
- rpm
release: "1"
bindir: /usr
contents:
- src: LICENSE
dst: /usr/share/licenses/iitj-autoproxy/LICENSE
- src: README.md
dst: /usr/share/doc/iitj-autoproxy/README.md
- src: autoproxy.config
dst: /etc/iitj-autoproxy/autoproxy.config
- src: ./scripts/linux/login.sh
dst: /usr/bin/autoproxylogin
- src: ./scripts/linux/daemon-start.sh
dst: /usr/bin/autoproxyd-start
- src: ./scripts/linux/daemon-stop.sh
dst: /usr/bin/autoproxyd-stop
- src: ./service_files/linux/[email protected]
dst: /etc/systemd/system/[email protected]
release:
prerelease: auto
github:
owner: SaahilNotSahil
name: iitj-autoproxy
name_template: "{{.ProjectName}}-v{{.Version}}"
aurs:
- name: iitj-autoproxy-bin
homepage: https://github.com/SaahilNotSahil/iitj-autoproxy
license: MIT
maintainers:
- "Saahil Bhavsar <[email protected]>"
contributors:
- "Saahil Bhavsar <[email protected]>"
commit_author:
name: SaahilNotSahil
email: [email protected]
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://[email protected]/iitj-autoproxy-bin.git"
package: |-
install -Dm755 "./bin/autoproxyd" "${pkgdir}/usr/bin/autoproxyd"
install -Dm755 "./bin/autoproxy" "${pkgdir}/usr/bin/autoproxy"
install -Dm755 "./scripts/linux/login.sh" "${pkgdir}/usr/bin/autoproxylogin"
install -Dm755 "./scripts/linux/daemon-start.sh" "${pkgdir}/usr/bin/autoproxyd-start"
install -Dm755 "./scripts/linux/daemon-stop.sh" "${pkgdir}/usr/bin/autoproxyd-stop"
install -Dm644 "./service_files/linux/[email protected]" "${pkgdir}/etc/systemd/system/[email protected]"
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/iitj-autoproxy/LICENSE"
install -Dm644 "./autoproxy.config" "${pkgdir}/etc/iitj-autoproxy/autoproxy.config"
install -Dm644 "./README.md" "${pkgdir}/usr/share/doc/iitj-autoproxy/README.md"
archives:
- wrap_in_directory: false
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- autoproxy.config
- scripts/*
- service_files/*
- install.sh
- install.ps1
- autoproxy-uninstall.ps1
brews:
- name: iitj-autoproxy
url_template: "https://github.com/SaahilNotSahil/iitj-autoproxy/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
download_strategy: CurlDownloadStrategy
commit_author:
name: SaahilNotSahil
email: [email protected]
commit_msg_template: "Brew formula update for iitj-autoproxy version {{ .Tag }}"
homepage: "https://github.com/SaahilNotSahil/iitj-autoproxy"
description: "A CLI tool to automatically login to IIT Jodhpur's network firewall."
license: "MIT"
skip_upload: false
service: |
run [opt_bin/"autoproxyd"]
keep_alive true
install: |
bin.install "bin/autoproxyd"
bin.install "bin/autoproxy"
(etc/"iitj-autoproxy").install "autoproxy.config"
bin.install "scripts/darwin/daemon-start.sh" => "autoproxyd-start"
bin.install "scripts/darwin/daemon-stop.sh" => "autoproxyd-stop"
bin.install "scripts/darwin/login.sh" => "autoproxylogin"
repository:
owner: SaahilNotSahil
name: homebrew-iitj-autoproxy
branch: main
pull_request:
enabled: false
scoops:
- name: iitj-autoproxy
url_template: "https://github.com/SaahilNotSahil/iitj-autoproxy/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: SaahilNotSahil
email: [email protected]
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/SaahilNotSahil/iitj-autoproxy"
description: "A CLI tool to automatically login to IIT Jodhpur's network firewall."
license: MIT
skip_upload: false
repository:
owner: SaahilNotSahil
name: scoop-iitj-autoproxy
branch: main
pull_request:
enabled: false