Move all of the fat framework building logic to build.sh