diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 97576ef..1ed5cb2 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -32,6 +32,7 @@ builds: archives: - format: binary + name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}' changelog: use: github diff --git a/README.EN.md b/README.EN.md index bbc80a9..865674e 100644 --- a/README.EN.md +++ b/README.EN.md @@ -10,7 +10,7 @@ hosts-go is a command-line tool for fetching and merging hosts files from the in ### use pre-compiled binary ```bash -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 +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 ``` ### go install diff --git a/README.md b/README.md index 11e3a2b..97702e5 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ hosts-go 是一个用于从互联网上获取和合并 hosts 文件的命令行 ### 使用预编译的二进制文件 ```bash -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 +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 ``` ### go install