Change pub method, remove build_conf replace code