https://github.com/flathub-infra/flat-manager-hooks
Hooks for integrating Flathub's backend with flat-manager
https://github.com/flathub-infra/flat-manager-hooks
flat-manager flathub flatpak
Last synced: about 2 months ago
JSON representation
Hooks for integrating Flathub's backend with flat-manager
- Host: GitHub
- URL: https://github.com/flathub-infra/flat-manager-hooks
- Owner: flathub-infra
- License: apache-2.0
- Created: 2022-12-14T05:10:48.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-04-09T20:39:21.000Z (2 months ago)
- Last Synced: 2026-04-09T22:22:23.512Z (2 months ago)
- Topics: flat-manager, flathub, flatpak
- Language: Rust
- Homepage:
- Size: 188 KB
- Stars: 5
- Watchers: 2
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flathub Hooks
This is a collection of scripts intended to integrate Flathub's backend with its flat-manager instance. It uses the
hooks feature of flat-manager, which runs commands at certain points in the upload/build/publish process.
These scripts are specific to Flathub. They aren't intended to be generalizable, but if you're running your own
instance of flat-manager you can specify your own set of scripts to do something similar.
All of the hooks are built as the same Rust binary and called using subcommands.
## flathub-hooks publish
This hook is run *during* the publish job. It fetches information about the app from the backend and edits the
build's commits to match. It updates appstream data, commit subsets, and token type.
## flathub-hooks review
This is the hook for reviewing a build. It checks with the backend for changes in appstream metadata and requests
a moderator review if necessary. It also runs some validators on the uploaded commits and reports any warnings or
errors to flat-manager.