{"id":24164893,"url":"https://github.com/ndom91/gitbutler-flathub","last_synced_at":"2026-04-24T17:04:06.929Z","repository":{"id":267088981,"uuid":"895084143","full_name":"ndom91/gitbutler-flathub","owner":"ndom91","description":"GitButler Flatpak","archived":false,"fork":false,"pushed_at":"2025-02-17T16:00:53.000Z","size":5145,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-25T13:12:40.487Z","etag":null,"topics":["flatpak","git","git-client","gitbutler"],"latest_commit_sha":null,"homepage":"https://app.gitbutler.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ndom91.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ndom91"]}},"created_at":"2024-11-27T14:29:58.000Z","updated_at":"2025-04-21T19:13:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c1d7752-6936-4f27-ba60-eb8e76182c1b","html_url":"https://github.com/ndom91/gitbutler-flathub","commit_stats":null,"previous_names":["ndom91/gitbutler-flathub"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ndom91/gitbutler-flathub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndom91%2Fgitbutler-flathub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndom91%2Fgitbutler-flathub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndom91%2Fgitbutler-flathub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndom91%2Fgitbutler-flathub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndom91","download_url":"https://codeload.github.com/ndom91/gitbutler-flathub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndom91%2Fgitbutler-flathub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32232637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["flatpak","git","git-client","gitbutler"],"created_at":"2025-01-12T19:33:20.755Z","updated_at":"2026-04-24T17:04:06.912Z","avatar_url":"https://github.com/ndom91.png","language":"Python","funding_links":["https://github.com/sponsors/ndom91"],"categories":[],"sub_categories":[],"readme":"\u003cimg align=\"right\" width=\"300\" src=\"./icons/badge.svg\" /\u003e\n\n# ⋈ GitButler Flathub\n\nThis is the flatpak packaging code for the [GitButler](https://github.com/gitbutlerapp/gitbutler) desktop application.\n\n## Setup Build Prerequisites\n\n0. Install [just](https://just.systems/man/en/packages.html) project command\n   runner.\n\n### Automatic\n\n1. Install `flatpak-builder-tools` and `flatpak-builder`\n\n```sh\n$ just install\n```\n\n2. Generate sources. First positional argument is the path to your cloned\n   `gitbutlerapp/gitbutler` repository\n\n```sh\n$ just sources /opt/gitbutlerapp/gitbutler/\n```\n\n### Manual\n\nWe'll need to use the `flatpak-builder-tools` `cargo` as well as `node` builders\nto generate the sources JSON inputs for use in the `flatpak-builder` command.\n\nThe goal is to generate the required lock file inputs that match the GitButler\nversion defined in the `com.gitbutler.app.yml` `git` source for GitButler (~`:108`).\n\n1. Clone flatpak-builder-tools\n\n```\ngit clone https://github.com/flatpak/flatpak-builder-tools\n```\n\n2. Generate node `generated-sources.json`\n\n- Using\n  [pnpm-lock-to-npm-lock](https://github.com/jakedoublev/pnpm-lock-to-npm-lock)\n  to convert our `pnpm-lock.yaml` to something that the flatpak-node-generator\n  can consume, `package-lock.json`.\n- Then\n  [flatpak-node-generator](https://github.com/flatpak/flatpak-builder-tools/tree/master/node)\n  to generate the `generated-sources.json` lock file.\n\n```\n# Generate package-lock.json from our pnpm-lock.yaml\nnpx pnpm-lock-to-npm-lock pnpm-lock.yaml\n\n# Run generated package-lock.json through `flatpak-node-generator`\n/home/ndo/.local/bin/flatpak-node-generator npm package-lock.json\n```\n\n3. Generate cargo `cargo-sources.json`\n\nUsing [flatpak-cargo-generator](https://github.com/flatpak/flatpak-builder-tools/tree/master/cargo)\n\n```\ncd flatpak-builder-tools/cargo\npython -m venv venv\nsource venv/bin/activate\npip install poetry\npoetry install\n\npython flatpak-cargo-generator.py /opt/gitbutler/gitbutler/Cargo.lock -o cargo-sources.json\n```\n\n## Building\n\nAfter you've got the prerequisites installed and the cargo and node source files\ngenerated, we can build the actual flatpak.\n\n```\n$ just flatpak \n\n# or to auto install after building: \n$ just flatpak --install \n```\n\nIf you used installed, you can now run the flatpak via `flatpak run com.gitbutler.app`, if you're not building for local consumption, continue on to the next step.\n\n## Bundling\n\nFinally, to export an archive for sharing, you can generate a `com.gitbutler.app.flatpak` file in the root of the repository.\n\n```\n$ just bundle\n```\n\n## License\n\nMIT\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndom91%2Fgitbutler-flathub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndom91%2Fgitbutler-flathub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndom91%2Fgitbutler-flathub/lists"}