From 97b5bfa8f8abff714479e5203c0baaf94e9c503e Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Tue, 7 Nov 2017 11:19:58 +0200 Subject: [PATCH] compiling with goreleaser --- .goreleaser.yml | 12 ++++++++++++ crossbuild.sh | 16 ---------------- 2 files changed, 12 insertions(+), 16 deletions(-) create mode 100644 .goreleaser.yml delete mode 100755 crossbuild.sh diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..df24ae0 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,12 @@ +# .goreleaser.yml +# Build customization +builds: + - binary: telegraf-freeswitch + goos: + - windows + - darwin + - linux + - freebsd + goarch: + - amd64 + - 386 diff --git a/crossbuild.sh b/crossbuild.sh deleted file mode 100755 index f34a21a..0000000 --- a/crossbuild.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env sh - -rm -rf build; mkdir build - -go build -v -o build/spark_linux_amd64 -GOOS=linux GOARCH=386 go build -v -o build/spark_linux_386 -GOOS=linux GOARCH=arm GOARM=5 go build -v -o build/spark_linux_arm5 -GOOS=darwin GOARCH=amd64 go build -v -o build/spark_darwin_amd64 -GOOS=darwin GOARCH=386 go build -v -o build/spark_darwin_386 -GOOS=windows GOARCH=386 go build -v -o build/spark_windows_386.exe -GOOS=windows GOARCH=amd64 go build -v -o build/spark_windows_amd64.exe - -go get -h github.com/pwaller/goupx/ -goupx build/spark_linux_amd64 -upx build/* -chmod -R a+rw build