The corresponding Android version has not yet been developed, and the Android version in this repository is the version of the original repository
go version 1.20 only (support win7) cd root directory of the socure code and execute
make
build specified os and arch.
All GOOS values:
"windows", "linux", "darwin", "dragonfly", "freebsd", "illumos", "netbsd", "openbsd"
All GOARCH values:
"386", "amd64", "amd64p32", "arm", "arm64", "arm64be", "armbe", "loong64", "mips", "mips64", "mips64le", "mips64p32", "mips64p32le", "mipsle","riscv", "riscv64"
For example linux+amd64
export GOPROXY=https://goproxy.io,direct
go mod tidy
CGO_ENABLED=0 env GOOS=linux GOARCH=amd64 go build -o openp2p --ldflags '-s -w ' -gcflags '-l' -p 8 -installsuffix cgo ./cmd
MCoreUsing 64Windows
export GOPROXY=https://goproxy.io,direct
go mod tidy
CGO_ENABLED=0 env GOOS=windows GOARCH=amd64 go build -o openp2p --ldflags '-s -w ' -gcflags '-l' -p 8 -installsuffix cgo ./cmd
32Windows
export GOPROXY=https://goproxy.io,direct
go mod tidy
CGO_ENABLED=0 env GOOS=windows GOARCH=386 go build -o openp2p --ldflags '-s -w ' -gcflags '-l' -p 8 -installsuffix cgo ./cmd