I want to do the same so I started using "Image composite editor" from Microsoft. It makes a very big file but... there is a problem, the sky.
As we know the Spark can´t shot the sky, so the DJI Go 4 app creates it (awesome). So actually the 360 degrees pictures are not created with 360 degrees...