1 Star 8 Fork 3

Rick / http-downloader

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.goreleaser.yml 1.60 KB
一键复制 编辑 原始数据 按行查看 历史
# Official documentation at http://goreleaser.com
project_name: http-downloader
builds:
- env:
- CGO_ENABLED=0
binary: hd
goarch:
- amd64
- arm64
- arm
goarm:
- 7
- 6
goos:
- windows
- linux
- darwin
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: darwin
goarch: arm
ldflags:
- -X github.com/linuxsuren/cobra-extension/version.version={{.Version}}
- -X github.com/linuxsuren/cobra-extension/version.commit={{.ShortCommit}}
- -X github.com/linuxsuren/cobra-extension/version.date={{.Date}}
- -w
- -s
dist: release
archives:
- name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}{{ .Arm }}"
replacements:
darwin: darwin
linux: linux
windows: windows
amd64: amd64
arm64: arm64
format_overrides:
- goos: windows
format: zip
files:
- README.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next-{{.ShortCommit}}"
changelog:
skip: true
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
- name: hd
tap:
owner: linuxsuren
name: homebrew-linuxsuren
folder: Formula
homepage: "https://github.com/linuxsuren/http-downloader"
description: HTTP download tool
dependencies:
- name: bash-completion
type: optional
test: |
version_output = shell_output("#{bin}/hd version")
assert_match version.to_s, version_output
install: |
bin.install name
prefix.install_metafiles
Go
1
https://gitee.com/linuxsuren/http-downloader.git
git@gitee.com:linuxsuren/http-downloader.git
linuxsuren
http-downloader
http-downloader
master

搜索帮助