Skip to content

Commit

Permalink
export GOOS and CGO_ENABLED vars
Browse files Browse the repository at this point in the history
  • Loading branch information
dakyskye committed Oct 18, 2020
1 parent bab29a3 commit 6b8547b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions do.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RELEASE_VERSION="$(date '+%d.%m.%Y_%H.%M')"

RELEASE_DIR="$(readlink -f "$(dirname "$0")")/releases"

GOOS=linux
export GOOS=linux

build() {
case "$1" in
Expand All @@ -39,7 +39,7 @@ release_preconfig() {
}

release_build() {
CGO_ENABLED=0
export CGO_ENABLED=0

echo "building for 386"
GOARCH=386 go build -a -ldflags "-s -w -X main.version=$RELEASE_VERSION" -o "$RELEASE_DIR/386/$BINARY_NAME"_386 .
Expand Down

0 comments on commit 6b8547b

Please sign in to comment.