From 42fed106486d372ab80c911b4d7d03dfd08bc5c2 Mon Sep 17 00:00:00 2001 From: st3ffn Date: Mon, 17 May 2021 18:02:49 +0200 Subject: [PATCH] build script supports multiple platform --- build-linux.sh | 5 ----- build.sh | 9 +++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) delete mode 100755 build-linux.sh create mode 100755 build.sh diff --git a/build-linux.sh b/build-linux.sh deleted file mode 100755 index 2ed88b3..0000000 --- a/build-linux.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -SCRIPT_PATH=$(dirname "$(realpath -s "$0")") - -env GOOS=linux GOARCH=amd64 go build -o chia-bouncer "$SCRIPT_PATH/main.go" diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..bde8048 --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +SCRIPT_PATH=$(dirname "$(realpath -s "$0")") + +go build -o chia-bouncer "$SCRIPT_PATH/main.go" +env GOOS=linux GOARCH=amd64 go build -o chia-bouncer-linux-amd64 "$SCRIPT_PATH/main.go" +env GOOS=darwin GOARCH=amd64 go build -o chia-bouncer-darwin-amd64 "$SCRIPT_PATH/main.go" +env GOOS=windows GOARCH=amd64 go build -o chia-bouncer-windows-amd64 "$SCRIPT_PATH/main.go" +env GOOS=linux GOARCH=arm64 go build -o chia-bouncer-linux-arm64 "$SCRIPT_PATH/main.go"