Use go build instead of go install (#1716)
Use go build instead of go install (#1716)

* Use go build instead of go install

go install doesn't like to cross-compile things. (Try running build.sh with GOARCH set to something other than what it "should" be.)

With go build, it appears that cross-compilation is really, really straightforward. Simply install a compiler for your target platform and set `GOARCH` and `CC` accordingly.

* Use shell expansion instead of loop

Co-authored-by: Neil Alexander <7f0e7998f0d3082a84355a2366a12924c14a9eda@users.noreply.github.com>
matrix-org/dendrite,matrix-org/dendrite,matrix-org/dendrite,matrix-org/dendrite