1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-18 10:07:02 +00:00

Customize goreleaser to get a working build

This commit is contained in:
James Hillyerd
2017-12-17 19:10:59 -08:00
parent 095796c8a1
commit 9f6dee640e

View File

@@ -1,6 +1,8 @@
project_name: inbucket
release: release:
github: github:
owner: 'https:' owner: jhillyerd
name: inbucket
name_template: '{{.Tag}}' name_template: '{{.Tag}}'
brew: brew:
commit_author: commit_author:
@@ -8,29 +10,33 @@ brew:
email: goreleaser@carlosbecker.com email: goreleaser@carlosbecker.com
install: bin.install "" install: bin.install ""
builds: builds:
- goos: - binary: inbucket
- linux goos:
- darwin - darwin
- freebsd
- linux
- windows
goarch: goarch:
- amd64 - amd64
- "386"
goarm: goarm:
- "6" - "6"
main: . main: inbucket.go
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
archive: archive:
format: tar.gz format: tar.gz
wrap_in_directory: true
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{
.Arm }}{{ end }}' .Arm }}{{ end }}'
format_overrides:
- goos: windows
format: zip
files: files:
- licence*
- LICENCE*
- license*
- LICENSE* - LICENSE*
- readme*
- README* - README*
- changelog*
- CHANGELOG* - CHANGELOG*
- inbucket.bat
- etc/**/*
- themes/**/*
fpm: fpm:
bindir: /usr/local/bin bindir: /usr/local/bin
snapshot: snapshot: