Merrit / flutter_flatpak_example

An example of how to package a Flutter application as a Flatpak for distribution on Linux, using the default counter example app.
64 stars 8 forks source link

[Questions] Help automating with GitHub Actions #9

Closed hillelcoren closed 8 months ago

hillelcoren commented 8 months ago

Hi,

Thanks for creating this project, it's been very useful! I've run into a few questions setting it up through GitHub Actions and was hoping you'd be able to help.

Hope you don't mind me creating an issue for questions.

Cheers

Merrit commented 8 months ago

Hey, glad it has been helpful :)

How are you adding FlutterApp-Linux-Portable.tar.gz to the release

For this example, manually.

If it's currently manual I assume we could use a upload-release-asset action to automate it?

Exactly. You can see here where I upload artifacts for release on one of my apps, if you'd like a reference.

What's unclear is I don't see how FlutterApp.flatpak is used in the action, or is it just to test manually?

Basically it is here for testing, so people can install it and see the app installs as a Flatpak and runs.

Essentially what I do is have my app's repo build, package, and release the portable version of the app. Afterwards a PR is made to the app's Flathub repo to update the .yml file with the new url & sha256 of the new app portable build, which triggers a test build, and accepting the PR triggers an update in Flathub. You can see one of my app's Flathub repos here for reference.

I rarely bother doing anything with actual .flatpak files, mostly I update the Flathub repo, I can test the build that buldbot makes and push it live. :)

hillelcoren commented 8 months ago

Brilliant, thanks again!

Merrit commented 8 months ago

Glad I could help 💙 :)