Correct error about "non-directory bin"

This commit is contained in:
Caleb Xavier Berger 2021-01-18 15:01:04 +00:00 committed by GitHub
parent aeb9bd7a2e
commit bbf10a9c0b

View file

@ -1,7 +1,7 @@
#!/bin/sh -eu #!/bin/sh -eu
# Put installed packages into ./bin # Put installed packages into ./bin
export GOBIN=$PWD/`dirname $0`/bin mkdir "./bin/"
if [ -d ".git" ] if [ -d ".git" ]
then then
@ -17,6 +17,6 @@ else
export FLAGS="" export FLAGS=""
fi 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 CGO_ENABLED=0 GOOS=js GOARCH=wasm go build -trimpath -ldflags "$FLAGS" -o bin/main.wasm ./cmd/dendritejs