Unofficial Flatpak package for Mailspring (Website, GitHub).
# User installation
flatpak-builder --force-clean --install-deps-from=flathub --ccache --install --user build-dir com.getmailspring.Mailspring.yml
# System installation
sudo flatpak-builder --force-clean --install-deps-from=flathub --ccache --install build-dir com.getmailspring.Mailspring.ymlIf your distribution doesn't have flatpak-builder, try with flatpak run org.flatpak.Builder instead.
After that, Mailspring will be installed in your system. You can run start it from your favorite app launcher or by running flatpak run com.getmailspring.Mailspring in the terminal.
# If not already done, clone the repository
git clone git@github.com:Foundry376/Mailspring.git
# Checkout to the version we want to package
cd Mailspring
git pull
git checkout <version>
# Print the commit hash, it is needed in the manifest
git rev-parse HEAD
# generate the generated-sources.json file
# See https://github.com/flatpak/flatpak-builder-tools/blob/master/node/README.md
flatpak-node-generator npm --node-sdk-extension org.freedesktop.Sdk.Extension.node24//25.08 --electron-node-headers -r package-lock.json -o ../generated-sources.jsonThen in com.getmailspring.Mailspring.yml:
- update the
tagandcommitfields with the new version and hash - ensure that the patches are still required and work correctly. Add new patches if necessary.