The idea of packaging Mailspring with Flatpak has been floated before. As the Flatpak ecosystem becomes more mature and widespread, I believe this is worth taking a second look at.
- Flatpak is preferred over Snap by many distros, and is presently more widely adopted than Snapcraft across the Linux ecosystem.
- Flatpak has a smaller “payload” due to its ability to share dependencies, instead of bringing everything itself.
- Flatpak has better integration with system theming and icons.
The related GitHub discussion is here:
One of the major Snapcraft issues that underscore the need to move to Flatpak: