adding build script.
update the build for upload and download.