mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 08:13:09 -06:00
Correct error about "non-directory bin"
This commit is contained in:
parent
aeb9bd7a2e
commit
bbf10a9c0b
4
build.sh
4
build.sh
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue