Skip to content

Commit

Permalink
build script supports multiple platform
Browse files Browse the repository at this point in the history
  • Loading branch information
St3ffn committed May 17, 2021
1 parent d07d60a commit 42fed10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 0 additions & 5 deletions build-linux.sh

This file was deleted.

9 changes: 9 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 42fed10

Please sign in to comment.