aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2021-01-18 15:09:54 +0000
committerNeil Alexander <neilalexander@users.noreply.github.com>2021-01-18 15:09:54 +0000
commitccfcb2d2808f4daa960921174a40b52b956d3a2a (patch)
treee033568f4c151f32b93de00569bd1b006358ce8c /build.sh
parentf6151b6290b2d7ab23af1c67d3e9fb4c7a08a955 (diff)
Create bin dir
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 09ecb61c..a4981408 100755
--- a/build.sh
+++ b/build.sh
@@ -17,6 +17,8 @@ else
export FLAGS=""
fi
+mkdir -p bin
+
CGO_ENABLED=1 go build -trimpath -ldflags "$FLAGS" -v -o "bin/" ./cmd/...
CGO_ENABLED=0 GOOS=js GOARCH=wasm go build -trimpath -ldflags "$FLAGS" -o bin/main.wasm ./cmd/dendritejs