{"id":25603849,"url":"https://github.com/merrit/flutter_flatpak_example","last_synced_at":"2025-03-17T06:06:01.743Z","repository":{"id":42076115,"uuid":"463682101","full_name":"Merrit/flutter_flatpak_example","owner":"Merrit","description":"An example of how to package a Flutter application as a Flatpak for distribution on Linux, using the default counter example app.","archived":false,"fork":false,"pushed_at":"2024-09-06T16:17:52.000Z","size":156,"stargazers_count":69,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-16T14:49:50.690Z","etag":null,"topics":["flathub","flatpak","flutter","linux"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Merrit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-25T21:36:57.000Z","updated_at":"2025-02-14T11:55:55.000Z","dependencies_parsed_at":"2023-02-12T03:30:24.274Z","dependency_job_id":null,"html_url":"https://github.com/Merrit/flutter_flatpak_example","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merrit%2Fflutter_flatpak_example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merrit%2Fflutter_flatpak_example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merrit%2Fflutter_flatpak_example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Merrit%2Fflutter_flatpak_example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Merrit","download_url":"https://codeload.github.com/Merrit/flutter_flatpak_example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243982176,"owners_count":20378604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flathub","flatpak","flutter","linux"],"created_at":"2025-02-21T17:29:16.734Z","updated_at":"2025-03-17T06:06:01.723Z","avatar_url":"https://github.com/Merrit.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"- [Flutter Flatpak Example](#flutter-flatpak-example)\n  - [Requirements](#requirements)\n    - [VSCode dev container](#vscode-dev-container)\n    - [GitHub actions](#github-actions)\n    - [Manual Requirements](#manual-requirements)\n  - [Instructions](#instructions)\n\n\n# Flutter Flatpak Example\n\n\nAn example of how to package a Flutter application as a Flatpak for distribution\non Linux, using the default counter example app.\n\n[Flatpak documentation](https://docs.flatpak.org/en/latest/index.html)\n\n\n\n## Requirements\n\n\u003e Note: Building a flatpak should be done in a predictable environment or it may\n\u003e fail.\n\n[Set up Flathub](https://flatpak.org/setup/), and choose one:\n\n### VSCode dev container\n\nUse the VSCode dev container provided in this repo that will run everything\nthrough Docker\n\n1. Install the [Dev\n   Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)\n   extension\n   \n2. Open this directory in VSCode.\n\n3. Accept the prompt to re-open in the dev container, or from the Command\n   Palette search for `Reopen in Container`\n\n\n### GitHub actions\n\n\u003e There is a [GitHub\n\u003e action](https://github.com/bilelmoussaoui/flatpak-github-actions) for this\n\u003e purpose, which is demonstrated in this repo. This action's page also lists the\n\u003e docker containers it uses.\n\u003e \n\u003e If you fork this example repo you can run the [example workflow](https://github.com/Merrit/flutter_flatpak_example/blob/main/.github/workflows/flatpak.yml), and\n\u003e install the `.flatpak` file it generates with `flatpak install \u003cpath-to-.flatpak\u003e`.\n\n\n### Manual Requirements\n\nInstall flatpak and flatpak-builder\n\nOn ubuntu:\n\n```bash\nsudo apt install flatpak flatpak-builder\n```\n\nAdd the FlatHub repo:\n\n```bash\nflatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo\n```\n\nInstall flatpak build dependencies:\n\n```bash\nflatpak install -y org.freedesktop.Sdk/x86_64/22.08\nflatpak install -y org.freedesktop.Platform/x86_64/22.08\nflatpak install -y flathub org.freedesktop.appstream-glib\n```\n\n\n## Instructions\n\nWe have two directories that each represent what would be separate git\nrepositories for a real project:\n\n[counter_app](counter_app/) is the Flutter app, view the README there for info on\nconfiguration and building.\n\n[flathub_repo](flathub_repo/) is separate from the Flutter app and is where the Flatpak is\nassembled, view the README there for info on configuration, building, and\npublishing of the flatpak after building the `counter_app`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerrit%2Fflutter_flatpak_example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmerrit%2Fflutter_flatpak_example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmerrit%2Fflutter_flatpak_example/lists"}