builds mac script