Skip to content

Commit 5462887

Browse files
committed
Add goreleaser
1 parent 170d289 commit 5462887

File tree

3 files changed

+32
-9
lines changed

3 files changed

+32
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*.so
66
*.dylib
77
bin
8+
dist
89

910
# environment variables
1011
.envrc

.goreleaser.yaml

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
before:
22
hooks:
33
- go mod tidy
4+
45
builds:
5-
- main: ./cmd/server
6+
- id: server
7+
main: ./cmd/server
68
binary: server
79
env:
810
- CGO_ENABLED=0
@@ -13,35 +15,55 @@ builds:
1315
- arm64
1416
- amd64
1517
- 386
16-
output:
17-
dir: dist/{{ .Os }}/{{ .Arch }}
1818

19-
- main: ./cmd/client
19+
- id: client
20+
main: ./cmd/client
2021
binary: client
2122
env:
2223
- CGO_ENABLED=0
2324
goos:
2425
- linux
2526
- darwin
2627
goarch:
28+
- arm64
2729
- amd64
2830
- 386
29-
output:
30-
dir: dist/{{ .Os }}/{{ .Arch }}
3131

3232
archives:
33-
- format: tar.gz
33+
- id: server_archive
34+
builds:
35+
- server
36+
format: tar.gz
37+
name_template: >-
38+
server_
39+
{{- title .Os }}_
40+
{{- if eq .Arch "amd64" }}x86_64
41+
{{- else if eq .Arch "386" }}i386
42+
{{- else }}{{ .Arch }}{{ end }}
43+
{{- if .Arm }}v{{ .Arm }}{{ end }}
44+
files:
45+
- server
46+
47+
- id: client_archive
48+
builds:
49+
- client
50+
format: tar.gz
3451
name_template: >-
35-
{{ .ProjectName }}_
52+
client_
3653
{{- title .Os }}_
3754
{{- if eq .Arch "amd64" }}x86_64
3855
{{- else if eq .Arch "386" }}i386
3956
{{- else }}{{ .Arch }}{{ end }}
4057
{{- if .Arm }}v{{ .Arm }}{{ end }}
58+
files:
59+
- client
60+
4161
checksum:
4262
name_template: 'checksums.txt'
63+
4364
snapshot:
4465
name_template: "{{ incpatch .Version }}-next"
66+
4567
changelog:
4668
sort: asc
4769
filters:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ first.
4242
# Running this project
4343

4444
## 1. Download the binaries
45-
Download and unpack the server and client binaries from the [releases](https://github.com/creativecreature/sturdyc/releases).
45+
Download and unpack the server **and** client binaries from the [releases](https://github.com/creativecreature/sturdyc/releases).
4646
Next, you'll want to make sure that they are reachable from your `$PATH`.
4747

4848
## 2. Create a configuration file

0 commit comments

Comments
 (0)