How to build a win32 version?

I tried to compile it but the syncthing.exe created is 64 bit version. Is there any information that can help to build a win32 version? including -goarch 386 ends up with “cannot install cross-compiled binaries when GOBIN is set” error while building…

Thanks!

go run build.go -goarch 386 build

The extra “build” at the end is the key.

https://docs.syncthing.net/dev/building.html