[mac]Divide build scripts into dependencies + release