0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

update releaser

This commit is contained in:
Zack Scholl 2019-11-18 07:29:11 -08:00
parent b755d3f827
commit 6a036d68f6
5 changed files with 45 additions and 36 deletions

View file

@ -4,7 +4,7 @@
src="https://user-images.githubusercontent.com/6550035/46709024-9b23ad00-cbf6-11e8-9fb2-ca8b20b7dbec.jpg" src="https://user-images.githubusercontent.com/6550035/46709024-9b23ad00-cbf6-11e8-9fb2-ca8b20b7dbec.jpg"
width="408px" border="0" alt="croc"> width="408px" border="0" alt="croc">
<br> <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://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 <a href="https://travis-ci.org/schollz/croc"><img
src="https://img.shields.io/travis/schollz/croc.svg?style=flat-square" alt="Build src="https://img.shields.io/travis/schollz/croc.svg?style=flat-square" alt="Build

View file

@ -20,27 +20,30 @@ build:
- arm64 - arm64
goarm: goarm:
- 7 - 7
nfpm: hooks:
formats: post: sh ./src/install/prepare-sources-tarball.sh
- deb nfpms:
vendor: "schollz.com" -
homepage: "https://schollz.com/software/croc/" formats:
maintainer: "Zack Scholl <zack.scholl@gmail.com>" - deb
description: "A simple, secure, and fast way to transfer data." vendor: "schollz.com"
license: "MIT" homepage: "https://schollz.com/software/croc/"
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}" maintainer: "Zack Scholl <zack.scholl@gmail.com>"
replacements: description: "A simple, secure, and fast way to transfer data."
amd64: 64bit license: "MIT"
386: 32bit file_name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
arm: ARM replacements:
arm64: ARM64 amd64: 64bit
darwin: macOS 386: 32bit
linux: Linux arm: ARM
windows: Windows arm64: ARM64
openbsd: OpenBSD darwin: macOS
netbsd: NetBSD linux: Linux
freebsd: FreeBSD windows: Windows
dragonfly: DragonFlyBSD openbsd: OpenBSD
netbsd: NetBSD
freebsd: FreeBSD
dragonfly: DragonFlyBSD
archives: archives:
- -
format: tar.gz format: tar.gz
@ -64,18 +67,19 @@ archives:
- README.md - README.md
- LICENSE - LICENSE
brew: brews:
github: -
owner: schollz github:
name: homebrew-tap owner: schollz
folder: Formula name: homebrew-tap
description: "croc is a tool that allows any two computers to simply and securely transfer files and folders." folder: Formula
homepage: "https://schollz.com/software/croc/" description: "croc is a tool that allows any two computers to simply and securely transfer files and folders."
install: | homepage: "https://schollz.com/software/croc/"
bin.install "croc" install: |
bin.install "croc"
test: | test: |
system "#{bin}/croc --version" system "#{bin}/croc --version"
scoop: scoop:
bucket: bucket:

View file

@ -32,7 +32,7 @@ func Run() (err error) {
app := cli.NewApp() app := cli.NewApp()
app.Name = "croc" app.Name = "croc"
if Version == "" { if Version == "" {
Version = "v6.2.3-b7625ef" Version = "v6.2.4-63ccb14"
} }
app.Version = Version app.Version = Version
app.Compiled = time.Now() app.Compiled = time.Now()

View file

@ -487,7 +487,7 @@ main() {
local install_file_rcode local install_file_rcode
croc_bin_name="croc" croc_bin_name="croc"
croc_version="6.2.3" croc_version="6.2.4"
croc_dl_ext="tar.gz" croc_dl_ext="tar.gz"
croc_base_url="https://github.com/schollz/croc/releases/download" croc_base_url="https://github.com/schollz/croc/releases/download"
prefix="${1}" prefix="${1}"

View 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/