I created an applet for cosmic. Now I can’t figure out how to make a flatpak for it to add to cosmic applet repo. I don’t have previous experience making flatpaks.

Is it the same as creating normal flatpaks? What is cargo_sources.json I see in the cosmic applets repo? Is there a just command (or something similar) to create the corfig files automatically?