Conversation
…s over workflow artifacts
… long as yarn is installed - likely best way for flathub ci to use the right version
|
I addressed some of the smaller issues. For building a standalone flatpak file, im going to bring the conversation over to the Discord for better communication, but here is a quick summary of my thoughts: if we still want to build a standalone flatpak file, I think the best approach would be to add a job to the release worklfow that uses flatpak-builder to build from the flathub manifest, as that would make sure that our standalone flatpak file is the same as the one people would get from flathub, and ensure there isnt any drift between the two. |
|
Moving this to draft while the changes are being addressed. |
|
I just want to say that I'm looking forward to having r2modman available via flatpak. It should make modding certain games on immutable Linux much easier. Thanks for your efforts, Thomas and Cade. |
|
Made the changes to generate the node sources locally with flatpak-node-generator, and updated the scripts to build a local version instead of building and installing it. I added some helper scripts to do this, and added python/pipx as a dependency in mise as it is probably the easiest way to get flatpak-node-generator for development. I wana make a note that while for local dev, |
… instead of always replacing the first source
Prepare r2modman repository for Flathub build processes
This PR updates the current Flatpak build process to mirror the one used by Flathub, adding and changing the files needed to do this. This will be a large step toward completing #729.
App changes
Changes to the actual runtime behavior of the app
Project changes
Changes to the project structure/repo and CI
io.github.ebkr.r2modman.yamlis the Flatpak manifest that contains the instructions to build the Flatpakio.github.ebkr.r2modman.metainfo.xmlis the appstream metadata used by storefrontsio.github.ebkr.r2modman.desktopis the .desktop file that is used to launch the Flatpakio.github.ebkr.r2modmanis a launch script that is used to run the r2modman binary inside of the Flatpakgenerate-release-manifest.jsis a quick script to take the manifest that is in the git repo, and update the flatpak sources to pull from git instead of using the local file systemDocumentation
Build config
generated-sources.json, a mapping of yarn lockfile deps to flatpak sourcesCI
r2modman.flatpakfile using the new manifest and flatpak-builder (mimicks how Flathub would build the app)What's missing
Currently, this PR doesn't have any workflows to automatically update the Flathub repo, as the submission hasn't started yet. If/once r2modman is accepted, then workflows can be added to push the generated manifest and the other files in the Flatpak directory to the Flathub repo.