build mac script