From bbf10a9c0b67fed6ec98f16f5ad0fd25e6ee2933 Mon Sep 17 00:00:00 2001 From: Caleb Xavier Berger Date: Mon, 18 Jan 2021 15:01:04 +0000 Subject: [PATCH] Correct error about "non-directory bin" --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 09ecb61ca..97e5f4e58 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/sh -eu # Put installed packages into ./bin -export GOBIN=$PWD/`dirname $0`/bin +mkdir "./bin/" if [ -d ".git" ] then @@ -17,6 +17,6 @@ else export FLAGS="" fi -CGO_ENABLED=1 go build -trimpath -ldflags "$FLAGS" -v -o "bin/" ./cmd/... +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