-
Notifications
You must be signed in to change notification settings - Fork 2
/
spok.goreleaser.yml
134 lines (126 loc) · 3.92 KB
/
spok.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
builds:
- main: ./cli
id: "cli"
binary: ./bin/spok
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/devlup-labs/spok/internal/pkg.Version={{ .Version }}
ignore:
- goos: windows
goarch: arm64
checksum:
name_template: "checksums.txt"
nfpms:
- package_name: spok
vendor: devlup-labs
homepage: https://github.com/devlup-labs/spok
maintainer: Saahil Bhavsar <[email protected]>
license: MIT
formats:
- deb
- archlinux
- rpm
release: "1"
bindir: /usr
contents:
- src: LICENSE
dst: /usr/share/licenses/spok/LICENSE
- src: README.md
dst: /usr/share/doc/spok/README.md
- src: ./scripts/configure-spok-server.sh
dst: /etc/spok/scripts/configure-spok-server.sh
release:
prerelease: auto
github:
owner: devlup-labs
name: spok
name_template: "{{.ProjectName}}-v{{.Version}}"
aurs:
- name: spok-bin
homepage: https://github.com/devlup-labs/spok
description: Sans Password or Key (SPoK) - An easier way for remote server authentication
license: MIT
maintainers:
- "Saahil Bhavsar <[email protected]>"
contributors:
- "Saahil Bhavsar <[email protected]>"
- "Jyotin Goel <[email protected]>"
commit_author:
name: SaahilNotSahil
email: [email protected]
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://[email protected]/spok-bin.git"
package: |-
install -Dm755 "./bin/spok" "${pkgdir}/usr/bin/spok"
install -Dm755 "./scripts/configure-spok-server.sh" "${pkgdir}/etc/spok/scripts/configure-spok-server.sh"
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/spok/LICENSE"
install -Dm644 "./README.md" "${pkgdir}/usr/share/doc/spok/README.md"
brews:
- name: spok
url_template: "https://github.com/devlup-labs/spok/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
download_strategy: CurlDownloadStrategy
commit_author:
name: SaahilNotSahil
email: [email protected]
commit_msg_template: "Brew formula update for spok version {{ .Tag }}"
homepage: "https://github.com/devlup-labs/spok"
description: "Sans Password or Key (SPoK) - An easier way for remote server authentication."
license: "MIT"
skip_upload: false
install: |
bin.install "bin/spok"
(etc/"spok"/"scripts").install "scripts/configure-spok-server.sh"
repository:
owner: devlup-labs
name: homebrew-spok
branch: main
pull_request:
enabled: false
archives:
- wrap_in_directory: false
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- scripts/configure-spok-server.sh
- install.ps1
- install.sh
scoops:
- name: spok
url_template: "https://github.com/devlup-labs/spok/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: SaahilNotSahil
email: [email protected]
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/devlup-labs/spok"
description: "Sans Password or Key (SPoK) - An easier way for remote server authentication."
license: MIT
skip_upload: false
# pre_install: ["Write-Host 'Running preinstall command'"]
# post_install: ["Write-Host 'Running postinstall command'"]
repository:
owner: devlup-labs
name: scoop-spok
branch: main
pull_request:
enabled: false