diff --git a/README.md b/README.md index 31added..e93ab59 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ src="https://user-images.githubusercontent.com/6550035/46709024-9b23ad00-cbf6-11e8-9fb2-ca8b20b7dbec.jpg" width="408px" border="0" alt="croc">
-Version +Version Coverage Build
diff --git a/goreleaser.yml b/goreleaser.yml
index e378837..0e27d4e 100644
--- a/goreleaser.yml
+++ b/goreleaser.yml
@@ -20,27 +20,30 @@ build:
     - arm64
   goarm:
     - 7
-nfpm:
-  formats:
-    - deb
-  vendor: " - description: "A simple, secure, and fast way to transfer data." - license: "MIT" - name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}" - replacements: - amd64: 64bit - 386: 32bit - arm: ARM - arm64: ARM64 - darwin: macOS - linux: Linux - windows: Windows - openbsd: OpenBSD - netbsd: NetBSD - freebsd: FreeBSD - dragonfly: DragonFlyBSD + hooks: + post: sh ./src/install/prepare-sources-tarball.sh +nfpms: + - + formats: + - deb + vendor: "schollz.com" + homepage: "https://schollz.com/software/croc/" + maintainer: "Zack Scholl " + description: "A simple, secure, and fast way to transfer data." + license: "MIT" + file_name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}" + replacements: + amd64: 64bit + 386: 32bit + arm: ARM + arm64: ARM64 + darwin: macOS + linux: Linux + windows: Windows + openbsd: OpenBSD + netbsd: NetBSD + freebsd: FreeBSD + dragonfly: DragonFlyBSD archives: - format: tar.gz @@ -64,18 +67,19 @@ archives: - README.md - LICENSE -brew: - github: - owner: schollz - name: homebrew-tap - folder: Formula - description: "croc is a tool that allows any two computers to simply and securely transfer files and folders." - homepage: "https://schollz.com/software/croc/" - install: | - bin.install "croc" +brews: + - + github: + owner: schollz + name: homebrew-tap + folder: Formula + description: "croc is a tool that allows any two computers to simply and securely transfer files and folders." + homepage: "https://schollz.com/software/croc/" + install: | + bin.install "croc" - test: | - system "#{bin}/croc --version" + test: | + system "#{bin}/croc --version" scoop: bucket: @@ -83,4 +87,4 @@ scoop: name: scoop-bucket homepage: "https://schollz.com/software/croc/" description: "croc is a tool that allows any two computers to simply and securely transfer files and folders." - license: MIT \ No newline at end of file + license: MIT diff --git a/src/cli/cli.go b/src/cli/cli.go index 64fe78e..26e1627 100644 --- a/src/cli/cli.go +++ b/src/cli/cli.go @@ -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() diff --git a/src/install/default.txt b/src/install/default.txt index 77a0250..482f682 100644 --- a/src/install/default.txt +++ b/src/install/default.txt @@ -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}" diff --git a/src/install/prepare-sources-tarball.sh b/src/install/prepare-sources-tarball.sh new file mode 100755 index 0000000..2024c6d --- /dev/null +++ b/src/install/prepare-sources-tarball.sh @@ -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/ \ No newline at end of file