Skip to content

Commit 26b039e

Browse files
committed
Use goreleaser
1 parent 9131dd6 commit 26b039e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*.so
99
*.dylib
1010
/onecli
11+
/dist
1112

1213
# Test binary, built with `go test -c`
1314
*.test

.goreleaser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ builds:
2020
- goos: windows
2121
goarch: arm64
2222
ldflags:
23-
- -s -w -X main.version={{ .Version }}
23+
- -s -w -X github.com/pepabo/onecli/version.Version={{.Version}}
2424

2525
archives:
2626
- format: tar.gz
2727
format_overrides:
2828
- goos: windows
2929
format: zip
30+
name_template: '{{ .Binary }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
3031

3132
checksum:
3233
name_template: "checksums.txt"

0 commit comments

Comments
 (0)