Change build script to pre_build