If you are interested I made a script to do the install. It uses pm tool which verifies its download and does some checksum to see if the image you have is the latest successful build available from ubports.
https://github.com/goddard/pinephone