From 365eca96533d4229d5bb5fe76b6625c25543909a Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 18 Oct 2018 07:54:25 -0600 Subject: [PATCH] update goreleaser --- goreleaser.yml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/goreleaser.yml b/goreleaser.yml index 03e4b6d..5d2d5ea 100644 --- a/goreleaser.yml +++ b/goreleaser.yml @@ -2,14 +2,17 @@ project_name: croc build: main: main.go binary: croc - ldflags: -s -w -X main.Version="v{{.Version}}" + ldflags: -s -w -X main.Version="v{{.Version}}-{{.Date}}" env: - CGO_ENABLED=0 goos: - darwin - linux - windows + - freebsd + - netbsd - openbsd + - dragonfly goarch: - amd64 - 386 @@ -17,6 +20,27 @@ build: - arm64 goarm: - 7 +nfpm: + 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" + 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 archive: format: tar.gz format_overrides: @@ -39,4 +63,4 @@ archive: - README.md - LICENSE release: - draft: false + draft: true