Skip to content

Commit 4976797

Browse files
committed
chore: remove the version in binary name
1 parent 6fa5b8f commit 4976797

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.goreleaser.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ builds:
3232

3333
archives:
3434
- format: binary
35+
name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
3536

3637
changelog:
3738
use: github

README.EN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ hosts-go is a command-line tool for fetching and merging hosts files from the in
1010

1111
### use pre-compiled binary
1212
```bash
13-
curl https://github.com/hunshcn/hosts-go/releases/latest/download/hosts-go_0.1.0_linux_amd64 -L -o /usr/bin/hosts-go && chmod +x /usr/bin/hosts-go
13+
curl https://github.com/hunshcn/hosts-go/releases/latest/download/hosts-go_linux_amd64 -L -o /usr/bin/hosts-go && chmod +x /usr/bin/hosts-go
1414
```
1515

1616
### go install

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ hosts-go 是一个用于从互联网上获取和合并 hosts 文件的命令行
1010

1111
### 使用预编译的二进制文件
1212
```bash
13-
curl https://github.com/hunshcn/hosts-go/releases/latest/download/hosts-go_0.1.0_linux_amd64 -L -o /usr/bin/hosts-go && chmod +x /usr/bin/hosts-go
13+
curl https://github.com/hunshcn/hosts-go/releases/latest/download/hosts-go_linux_amd64 -L -o /usr/bin/hosts-go && chmod +x /usr/bin/hosts-go
1414
```
1515

1616
### go install

0 commit comments

Comments
 (0)