mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
update releaser
This commit is contained in:
parent
b755d3f827
commit
6a036d68f6
5 changed files with 45 additions and 36 deletions
|
@ -4,7 +4,7 @@
|
|||
src="https://user-images.githubusercontent.com/6550035/46709024-9b23ad00-cbf6-11e8-9fb2-ca8b20b7dbec.jpg"
|
||||
width="408px" border="0" alt="croc">
|
||||
<br>
|
||||
<a href="https://github.com/schollz/croc/releases/latest"><img src="https://img.shields.io/badge/version-v6.2.3-brightgreen.svg?style=flat-square" alt="Version"></a>
|
||||
<a href="https://github.com/schollz/croc/releases/latest"><img src="https://img.shields.io/badge/version-v6.2.4-brightgreen.svg?style=flat-square" alt="Version"></a>
|
||||
<a href="https://coveralls.io/github/schollz/croc"><img src="https://img.shields.io/badge/coverage-80%25-green.svg?style=flat-square" alt="Coverage"></a>
|
||||
<a href="https://travis-ci.org/schollz/croc"><img
|
||||
src="https://img.shields.io/travis/schollz/croc.svg?style=flat-square" alt="Build
|
||||
|
|
|
@ -20,7 +20,10 @@ build:
|
|||
- arm64
|
||||
goarm:
|
||||
- 7
|
||||
nfpm:
|
||||
hooks:
|
||||
post: sh ./src/install/prepare-sources-tarball.sh
|
||||
nfpms:
|
||||
-
|
||||
formats:
|
||||
- deb
|
||||
vendor: "schollz.com"
|
||||
|
@ -28,7 +31,7 @@ nfpm:
|
|||
maintainer: "Zack Scholl <zack.scholl@gmail.com>"
|
||||
description: "A simple, secure, and fast way to transfer data."
|
||||
license: "MIT"
|
||||
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
|
||||
file_name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
|
||||
replacements:
|
||||
amd64: 64bit
|
||||
386: 32bit
|
||||
|
@ -64,7 +67,8 @@ archives:
|
|||
- README.md
|
||||
- LICENSE
|
||||
|
||||
brew:
|
||||
brews:
|
||||
-
|
||||
github:
|
||||
owner: schollz
|
||||
name: homebrew-tap
|
||||
|
|
|
@ -32,7 +32,7 @@ func Run() (err error) {
|
|||
app := cli.NewApp()
|
||||
app.Name = "croc"
|
||||
if Version == "" {
|
||||
Version = "v6.2.3-b7625ef"
|
||||
Version = "v6.2.4-63ccb14"
|
||||
}
|
||||
app.Version = Version
|
||||
app.Compiled = time.Now()
|
||||
|
|
|
@ -487,7 +487,7 @@ main() {
|
|||
local install_file_rcode
|
||||
|
||||
croc_bin_name="croc"
|
||||
croc_version="6.2.3"
|
||||
croc_version="6.2.4"
|
||||
croc_dl_ext="tar.gz"
|
||||
croc_base_url="https://github.com/schollz/croc/releases/download"
|
||||
prefix="${1}"
|
||||
|
|
5
src/install/prepare-sources-tarball.sh
Executable file
5
src/install/prepare-sources-tarball.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
tmp=$(mktemp -d)
|
||||
git clone --depth 1 https://github.com/schollz/croc $tmp/croc
|
||||
(cd $tmp/croc && go mod tidy && go mod vendor)
|
||||
(cd $tmp && tar -cvzf croc-src.tar.gz croc)
|
||||
mv $tmp/croc-src.tar.gz dist/
|
Loading…
Add table
Add a link
Reference in a new issue