I notice that in the following MakerFlatpak maker class, @malept/electron-installer-flatpak is a required dependency that has not been mentioned anywhere. I believe it should be added to the list of requirements in this page
Without the dependency, it will result in the following error:
FAILED: Cannot make for linux and target flatpak: the maker declared that it cannot run on linux.
Reference code: https://github.com/electron/forge/blob/84f76c82a045b41f34a132a53893315b9aae04ab/packages/maker/flatpak/src/MakerFlatpak.ts#L32