Below you'll find the commands to build the mainnet and testnet
Inside the files build.sh and build-testnet.sh you'll find also the env variables for tweaking and building custom branches and repos for pocket network
bash build.sh
bash build-testnet.sh