From 195da6486b89298c29b8c24235605c339123384d Mon Sep 17 00:00:00 2001 From: Gregory Oschwald Date: Tue, 27 Nov 2018 07:51:54 -0800 Subject: [PATCH] Try to place generated files in dist dir directly --- .goreleaser.yml | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index a99432f7..e2aef1cc 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -15,18 +15,43 @@ archive: builds: - main: './cmd/geoipupdate' binary: 'geoipupdate' + goarch: + - 'amd64' goos: - 'darwin' + hooks: + post: 'make data BUILDDIR=dist/darwin_amd64' +- main: './cmd/geoipupdate' + binary: 'geoipupdate' + goarch: + - '386' + goos: + - 'linux' + hooks: + post: 'make data BUILDDIR=dist/linux_386' +- main: './cmd/geoipupdate' + binary: 'geoipupdate' + goarch: + - 'amd64' + goos: - 'linux' hooks: - pre: 'make clean BUILDDIR=.' - post: 'make data BUILDDIR=.' + post: 'make data BUILDDIR=dist/linux_amd64' +- main: './cmd/geoipupdate' + binary: 'geoipupdate' + goarch: + - '386' + goos: + - 'windows' + hooks: + post: 'make data OS=Windows_NT BUILDDIR=dist/windows_386' - main: './cmd/geoipupdate' binary: 'geoipupdate' + goarch: + - 'amd64' goos: - 'windows' hooks: - pre: 'make clean BUILDDIR=.' - post: 'make data OS=Windows_NT BUILDDIR=.' + post: 'make data OS=Windows_NT BUILDDIR=dist/windows_amd64' checksum: name_template: 'checksums.txt'