From f3f488e460217ef4a1708d5799b68fba8b88af89 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 11 Jul 2019 06:18:28 -0700 Subject: [PATCH] add goreleaser --- goreleaser.yml | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 goreleaser.yml diff --git a/goreleaser.yml b/goreleaser.yml new file mode 100644 index 0000000..ad575ec --- /dev/null +++ b/goreleaser.yml @@ -0,0 +1,86 @@ +project_name: hostyoself +build: + main: main.go + binary: hostyoself + ldflags: -s -w -X main.Version="v{{.Version}}-{{.Date}}" + env: + - CGO_ENABLED=0 + goos: + - darwin + - linux + - windows + - freebsd + - netbsd + - openbsd + - dragonfly + goarch: + - amd64 + - 386 + - arm + - arm64 + goarm: + - 7 +nfpm: + formats: + - deb + vendor: "schollz.com" + homepage: "https://schollz.com/software/hostyoself/" + maintainer: "schollz " + 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 +archives: + - + format: tar.gz + format_overrides: + - goos: windows + format: zip + 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 + files: + - README.md + - LICENSE + +brew: + github: + owner: schollz + name: homebrew-tap + folder: Formula + description: "hostyoself lets you host your files using websockets from the command line or a browser." + homepage: "https://schollz.com/software/hostyoself/" + install: | + bin.install "hostyoself" + + test: | + system "#{bin}/hostyoself --version" + +scoop: + bucket: + owner: schollz + name: scoop-bucket + homepage: "https://schollz.com/software/hostyoself/" + description: "hostyoself lets you host your files using websockets from the command line or a browser." + license: MIT \ No newline at end of file