build process for final and beta versions