adding goreleaser

This commit is contained in:
Julien Neuhart
2018-05-16 13:51:51 +02:00
parent e3366d0b62
commit 223c0de35a

28
.goreleaser.yml Normal file
View File

@@ -0,0 +1,28 @@
---
project_name: Gotenberg
builds:
- main: ./main.go
binary: gotenberg
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- arm64
archive:
name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format: tar.gz
format_overrides:
- goos: windows
format: zip