move build steps to build.sh.