This is the repository for the Flathub Flatpak-package for «Beyond All Reason». The Flathub page can be found here:
https://flathub.org/apps/details/info.beyondallreason.bar
If there were changes in the NPM modules in the spring-launcher repository (package.json / package-lock.json files), Flatpak will require the updated generated-sources.json file to bundle the correct modules in the build. To regenerate it, clone https://github.com/flatpak/flatpak-builder-tools/ locally and follow the readme
Then run:
flatpak-node-generator npm package-lock.json
in the spring-launcher repo root, at the correct commmit, and copy the resulting generated-sources.json file to replace the one in the Flatpak build repository.
Read more about bundling NPM modules here: https://docs.flatpak.org/en/latest/electron.html#bundling-npm-packages
To create the package locally or test a new version use:
flatpak-builder build-dir info.beyondallreason.bar.yml --force-clean --install --user