script to build and install on the device