What a package is
A FlatPark package is one directory under registry/,
named exactly for the app’s Flatpak id. It holds no copy of the app. Its manifest
names the vendor’s own download by URL, checksum and size, and Flatpak fetches
that download on the user’s machine when the app is installed. What FlatPark
builds, signs and hosts is only what goes around it: a launcher, a desktop entry,
an icon, the AppStream data and a script that unpacks the download.
The files
| File | What it is for |
|---|---|
flatpark.yml |
The descriptor: name, summary, category, which manifest to build, how to check for updates, what the package changes. CI and the site read it. |
<id>.yml |
The Flatpak manifest: runtime, sandbox permissions, and the pinned download. |
apply_extra.sh |
Unpacks the download on the user’s machine, at install time. |
<name>-wrapper |
The launcher. Sets what the app needs and starts the vendor’s binary. |
<id>.desktop, <id>.metainfo.xml, <id>.png or <id>.svg |
What the desktop and software centres show. The metainfo also records the current version. |
resolve-update.sh |
Finds upstream’s latest release and its download URL. |
Some packages carry more: a fonts.conf, a second launcher for a CLI, a small
shim. Each one is listed in the manifest and explained in a comment there.
What runs when
- Build (CI, on merge).
flatpak-builderinstalls the launcher, the unpack script and the desktop files into the app. The vendor’s download is not fetched; the manifest only records where it is. - Install (the user’s machine). Flatpak downloads the vendor’s file, checks
its size and SHA-256, and runs
apply_extra.shoffline to unpack it into/app/extra. - Launch. The desktop entry runs the wrapper, which starts the vendor’s
binary from
/app/extra. - Update. Twice a day, and within minutes for apps whose upstream sends us
a release notice,
resolve-update.shis asked for the latest version. When it changed, CI re-pins the download, adds a release to the metainfo and publishes. The user’s nextflatpak updatedownloads the new file and runsapply_extra.shagain.
The one rule: extra-data only
The app always comes from the vendor’s own URL, fetched at install time (Flatpak calls this extra-data). FlatPark doesn’t build apps from source and doesn’t host their files. Three reasons:
- You run what the vendor shipped. A reviewer checks a pin and an unpack script, not a build. Users can compare the checksum with the vendor’s.
- Closed-source apps can be listed. Most licences allow downloading from the vendor but not redistributing; we never redistribute.
- It stays cheap and fast. A package on FlatPark’s storage is a few megabytes of scaffolding instead of the whole app, and an update is a re-pin, not a rebuild, so it ships minutes after upstream’s release. CI downloads the new file once to record its checksum and size; users download it from the vendor, never from FlatPark.
The one thing a package may build in is a shared support library from
flatpark/prebuilt. Everything else
the app needs and the runtime lacks is a second extra-data download.
For agents
flatpark.yml
id: com.example.App # required: the directory name
name: Example App # required
summary: One-line description # required
website: https://example.com/
source_url: https://github.com/example/app # upstream source; or the build repository; closed: the vendor's download page
build:
manifest: com.example.App.yml # required, relative to this directory
branch: stable # default: stable
mode: extra-data
arches: [x86_64, aarch64] # default: [x86_64]
catalog:
category: Office
tags: [Example, Demo]
upstream_approved: true # only with a row in upstream-approvals.md
stars_repo: owner/name # only when source_url is not upstream's repo; or none
interface: cli # gui (default) | cli | web; required for Terminal=true
requires: # other Flatpak apps it runs with, if any
- remote: flathub
ref: org.winehq.Wine//stable-26.08
name: Wine
update:
command: ./resolve-update.sh
stale_ignore: 'Nightly' # only if newer upstream releases are skipped on purpose
policy:
proprietary: true # honest; drives the licence shown on the site
dangerous_permissions: [] # high-risk finish-args, each with a reason (permissions.md)
packaging: # anything beyond a plain launch
- kind: seeded-config
detail:
en: "One sentence a user can read."
zh-Hans: "同一句话的中文。"
build.arches: listaarch64only when upstream publishes an arm build and the manifest pins it. Each extra-data source then carries its ownonly-arches. The simplest shape gives both payloads the samefilename, soapply_extra.shunpacks one name on either arch.catalog.categorypicks the app’s section on the site. Use a freedesktop main category (AudioVideo,Development,Education,Game,Graphics,Network,Office,Science,System,Utility),Finance, or FlatPark’s ownAIfor AI clients, agents and local model runners. The audit rejects anything the site has no section for; the full list is the map inscripts/catalog-sections.mjs. Flathub’s “Productivity” is its label forOffice, and mail clients areOfficetoo. Whether an app is a command-line tool isn’t a category: its category stays what the tool is for.catalog.interfacesays how the app is used:gui(the default, leave it out),clifor a command-line tool,webfor a local server used through the page it serves in a browser (llama.cpp). It is required when the.desktophasTerminal=true, which looks the same forcliandweb. The site shows aCLIorWeb UIchip. Packaging either, file access included, is in command-line tools and web UIs.catalog.upstream_approvedis the blue shield. CI fails it without a matching row in upstream approvals.catalog.stars_reposays which GitHub repository’s stars the site shows and sorts by. Leave it out whensource_urlis upstream’s own repository; that one is used. Set it to upstream’sowner/namewhensource_urlis a build repository, and tononefor a closed app whosesource_urlis the contributor’s own packaging repository (a-flatpakrepo). When the developer publishes releases from a repository of their own, name it here so the audit knows it is meant. Extensions never show stars. The PR audit warns about asource_urlthat looks like a build or packaging repository and has nostars_repo.source_urlis where the app comes from: upstream’s source if it is open, the build repository if one makes the release, the contributor’s packaging repository if the package came from one. A closed app without any of these points at the vendor’s download page. Never an unrelated packaging repository, such as a Flathub manifest the package was once modelled on: FlatPark’s package doesn’t come from it, and the Packaging row already links the registry.requireslists other Flatpak apps the app runs with. Flatpak has no dependency between apps, so the site’s install command installs them too, and the app page says they are needed; a.flatpakrefcan’t bring them. The app itself must tell a user who started it without one what to install.packagingdeclares what the package changes around the vendor’s build; the kinds and levels are in permissions.
The manifest
A typical manifest, trimmed (the full file is
dev.tabularis.Tabularis,
a Tauri app whose upstream approved the listing and pushes its releases to us):
id: dev.tabularis.Tabularis
runtime: org.gnome.Platform
runtime-version: "51"
sdk: org.gnome.Sdk
command: tabularis
separate-locales: false
build-options:
no-debuginfo: true
finish-args:
# why each grant is needed, one comment per group
- --share=ipc
- --share=network
- --socket=wayland
- --socket=fallback-x11
- --device=dri
- --talk-name=org.freedesktop.secrets
modules:
- name: tabularis
buildsystem: simple
build-commands:
- install -Dm755 apply_extra.sh /app/bin/apply_extra
- install -Dm755 tabularis-wrapper /app/bin/tabularis
- install -Dm644 dev.tabularis.Tabularis.desktop /app/share/applications/dev.tabularis.Tabularis.desktop
- install -Dm644 dev.tabularis.Tabularis.metainfo.xml /app/share/metainfo/dev.tabularis.Tabularis.metainfo.xml
- install -Dm644 dev.tabularis.Tabularis.png /app/share/icons/hicolor/512x512/apps/dev.tabularis.Tabularis.png
sources:
# BEGIN MANAGED EXTRA-DATA
- type: extra-data
filename: tabularis.deb
only-arches: [x86_64]
url: https://github.com/TabularisDB/tabularis/releases/download/v0.28.0/tabularis_0.28.0_amd64.deb
sha256: 237649b0…
size: 20561470
# END MANAGED EXTRA-DATA
- type: file
path: apply_extra.sh
- type: file
path: tabularis-wrapper
# … one `type: file` per packaging file
- Runtime. Use the current major of the app’s runtime:
org.freedesktop.Platform/org.freedesktop.Sdk26.08,org.gnome.Platform/org.gnome.Sdk51, ororg.kde.Platform/org.kde.Sdk6.11. Never an older major for one app. Which one to pick depends on what the payload brings with it; see choosing a format. apply_extramust be installed to/app/bin/apply_extra. That path is how Flatpak finds it.- The managed block (
# BEGIN MANAGED EXTRA-DATA…# END) is rewritten whole by the updater. Anything else inside it is lost on the next update, so a fixed second download (a prebuilt tool, a fonts archive) goes outside the block. Debian packages pinned as extra-data have their own block,# BEGIN MANAGED DEBIAN <suite> <components>, re-pinned by a separate job, and so do third-party downloads that opt in to dependency pins. sizemust be right. Flatpak checks it before the checksum. When you change a URL by hand, changesha256andsizetogether; a wrong size builds fine and fails only at install (“Wrong size for extra data”).no-debuginfo: truealone does not strip. It drops the debug split; if/appcontains real binaries (not just scripts), addstrip: trueas well, or the ref grows instead of shrinking.finish-argsare the smallest set that lets the core feature work, with a comment on each group. Optional extras are documented asflatpak overridecommands in the metainfo, not granted; see permissions.
apply_extra.sh
This is the part that differs most from an ordinary Flatpak, and the part that breaks installs when it is wrong. It runs:
- at install and on every update, on the user’s machine, in
/app/extra, where Flatpak has put each download under itsfilename; - offline — no network at all;
- inside the runtime, with only the runtime’s
/usrand/app/extravisible on a system-wide install./app/binis not there, so a tool the script needs (unsquashfs for an AppImage, for example) has to arrive as extra-data too, not be built into the app; - as root with every capability dropped on a system-wide install. A
tarorbsdtarthat tries to restore the archive’s owner fails and aborts the unpack. Always pass--no-same-owner. A--userinstall runs as the user and never shows this, which is why the check below exists. Archives made withoutfakerootrecord a real uid (1000, 1001…);bsdtar --numeric-owner -tvf <file> | awk '{print $3":"$4}' | sort -ushows it.
What it must do:
- Check each expected download exists, unpack it, and move the app to a fixed
path (
/app/extra/<name>), not a versioned one, so the wrapper works across updates. - Don’t hardcode a name upstream can change between releases: a versioned
directory, or the launcher binary itself. Updates are merged without a
human, so read the name out of the archive (a
.deb’s own desktop entryExec=is the authority for Electron builds) and fail if it is ambiguous. tldraw renamed its launcher in 1.12 and the refreshed pin shipped an app nobody could install (#130). - Check the binary it is about to hand to the wrapper exists, and fail with a clear message if not. An upstream that changes its archive layout then fails the update check instead of shipping a broken app.
- Delete the downloaded archives and staging directories. What is left in
/app/extrastays on the user’s disk. - Nothing that must be exported — the desktop entry, icon, metainfo — can come
from here. Flatpak exports files at build time, before the download exists.
Ship them as
type: filesources even if the vendor’s archive has its own.
The runtime has bsdtar (libarchive: tar in every compression, zip, .deb,
.rpm, 7z), GNU tar and the usual coreutils. It has no ar, dpkg, rpm2cpio
or unsquashfs.
Test it the way a system install runs it before opening a PR:
./scripts/check-apply-extra.sh com.example.App
It runs the real pinned download through your apply_extra.sh as root without
capabilities, offline. The update job runs the same check on every new upstream
release and holds back a pin that fails it.
Icon
Name it <id>.png or <id>.svg in the package directory, even if the manifest
installs it under another name: the site only picks up that name, and
audit-descriptor.mjs fails without it. A PNG is at most 512×512 (Flatpak’s
validator rejects larger); resize with ffmpeg or rsvg-convert from the SDK.
The wrapper
A short sh script installed as /app/bin/<command>. It passes the flags the
app needs in the sandbox, sets the few variables the manifest can’t, then
execs the vendor’s binary from /app/extra. Keep it to that: anything that
writes files, patches the payload or preloads code changes the packaging level
and must be declared. Say why each line is there in a comment; the next
packager reads the wrapper first.
Environment variables go in the manifest
Set a variable with a fixed value in finish-args as --env=NAME=value, with
a comment saying why, not as an export in the wrapper:
- The user can change it.
flatpak override --env=NAME=…andflatpak run --env=NAME=…win overfinish-args. Anexportin the wrapper runs after both and overwrites them, so a user can’t turn a workaround off (#1754). - It can be seen.
flatpak info --show-permissionsand override editors such as Flatseal list it; nobody has to read a script.
A value from finish-args also replaces the host’s: a QT_QPA_PLATFORM=wayland
set for the whole session doesn’t reach an app pinned to xcb, which is usually
what the pin is for.
audit-descriptor.mjs fails a launcher script that exports a fixed value at
its top level. Only what finish-args can’t express stays in the wrapper, with
a comment saying why it isn’t in the manifest:
- a value built from another variable:
TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID",HF_HOME="$XDG_DATA_HOME/huggingface"; - a path added to an existing list:
LD_LIBRARY_PATH,PATH; - a choice made at launch, such as Wayland or X11 by
WAYLAND_DISPLAY; unsetof a variable that leaks in from the host (ELECTRON_RUN_AS_NODE).
Workaround variables are explained in the metainfo
A variable that works around a bug (a renderer, a display backend, a locale)
is right for the app and driver versions it was tested with. When either
changes, it can stop being needed or start doing harm: dbx sets
WEBKIT_DISABLE_DMABUF_RENDERER itself per GPU, and the package’s forced value
broke its window on GNOME (#1754).
- Grep the app’s startup code for the variable first. An app that sets it itself needs nothing from the package.
- When the package sets one, the metainfo says what it does, what removing it costs, and how to try without it. A variable left out on purpose, for hardware where it helps, gets the same: the symptom and the override that fixes it.
<p>This package sets WEBKIT_DISABLE_DMABUF_RENDERER=1, which avoids a blank
window on some GPUs but renders more slowly. To try GPU rendering:
<code>flatpak override --user --env=WEBKIT_DISABLE_DMABUF_RENDERER=0 com.example.App</code>.
To go back: <code>flatpak override --user --reset com.example.App</code>.</p>
Undo with --reset, or by setting the package’s value again.
--unset-env=NAME doesn’t restore the package’s value: it removes the
variable from the app’s environment altogether.
Variables that are part of how the package works (TMPDIR, a data directory)
need the manifest comment only; the metainfo mentions one only when a user
might want it changed, such as an update check turned off.
The metainfo and the version
Flatpak has no version field for extra-data. The version lives in the
metainfo, as the newest <release version="…" date="…"> entry, and that is
what the updater compares against. A new package starts with one <release>
for the version it pins. The description is shown on the app’s page, so it is
also where opt-in flatpak override commands, the
workaround variables
and any disclosed change go.
The rest of the metainfo:
-
Say it is a community package: it repackages the official upstream build unmodified. A closed-source package that injects code says what it injects instead of “unmodified”. A package from a build repository names that repository and points its support links there.
-
Support links go where someone knows about the package. The metainfo
bugtrackeris not only for our site: GNOME Software and KDE Discover show it as their “Report an issue” button.helpis the site’s Support row.- An open-source package that upstream approved
(
catalog.upstream_approved: true) keeps upstream’s links. The developer agreed to the package, and often maintains it. - A package from a build repository points at that repository’s issues.
- Every other package, including every closed-source one, points
bugtrackerat FlatPark’s tracker,https://github.com/flatpark/flatpark/issues. Upstream never asked for this package, and a vendor didn’t make it, so a sandbox problem reported there goes nowhere and costs them time. A bug that turns out to be the app’s is passed on during triage (report-to-upstream). - For
help, a closed-source package uses FlatPark’s tracker too. An open-source one may keep upstream’s user manual or docs, since reading them bothers no one. A page that asks upstream for support (a forum, GitHub Discussions, a support or contact page) does not stay: pointhelpat FlatPark’s tracker instead, and dropcontactlinks to upstream’s chat.
homepageandvcs-browserstay upstream’s. The audit fails abugtrackerthat is missing or points anywhere else. - An open-source package that upstream approved
(
-
project_licenseis the app’s real licence; for closed source,LicenseRef-proprietary=<URL of the vendor's terms>. -
Telemetry is upstream’s feature: someone installing the app already trusts upstream or needs what it does. If you happen to notice telemetry or analytics while packaging or testing, you can mention it in the description (and how to turn it off, if there’s a setting). Don’t go looking for it; it’s not a check, and saying nothing means only that nobody noticed.
-
Screenshots are expected: an app page without one is the first thing a visitor notices. Each is an
<image>URL, never a file in the package; the site downloads it at build time and serves it as WebP, falling back to the URL if the download fails. Exactly one<screenshot type="default">, each with a short<caption>.-
Where to look: the official website (product and download pages, the docs) and the README of the upstream repository. Link the image where upstream hosts it;
github.com/user-attachments/…URLs from a README are fine. -
What fits: the app as packaged. Leave out screenshots of another platform’s client (Windows, macOS, mobile, the web version of an app whose desktop UI differs), of a visibly older version, and promotional composites or feature banners rather than the window itself. A different theme or a macOS window frame around the same UI is fine.
-
Nothing suitable upstream: use the screenshot from your own test run (testing playbook), taken of the app doing something real, with no account, personal data or host desktop in it: crop away panels, docks and other windows. Commit it as
registry/<id>/screenshots/<name>.png(not in the manifest’s sources) and link it onmain, with a comment saying where it came from:<!-- Upstream publishes no screenshot; taken from a test run of 1.2.0. --> <image>https://raw.githubusercontent.com/flatpark/flatpark/main/registry/<id>/screenshots/editor.png</image>The URL answers only once the PR merges. Until then the site build reads the file from the checkout and the link check confirms it exists, so the PR preview and checks work as with any other screenshot.
-
An app whose window is an overlay (a screenshot or colour-picker tool that grabs the whole screen): it holds the keyboard while open, and its own capture can’t take itself. Start a capture from outside with a delay, e.g.
(sleep 20; grim shot.png) &on wlroots or Hyprland, then bring the overlay up. Annotate a public image (the app’s README, say) rather than your own desktop, and crop the rest. -
No screenshot only when the package has no window of its own (a browser-signing helper, an extension of another app) or the app can’t be run far enough to show one. Say which in the PR.
-
resolve-update.sh
Prints the latest release as JSON on stdout (logs go to stderr), and nothing else. It does no hashing and touches no file:
{
"version": "1.2.3",
"releaseDate": "2026-06-19",
"sources": [
{ "filename": "app.tar.gz", "url": "https://example.com/app-1.2.3-linux-x86_64.tar.gz" }
]
}
filenamemust match the one in the manifest.releaseDateis upstream’s release date. If upstream doesn’t publish one, leave it out and the release is dated the day the update is picked up. A<release>with no date is ignored by Flatpak, which then shows no version for the app.- For several arches, emit one source per arch with
"arch": "x86_64"or"arch": "aarch64". - If upstream re-uploads a fixed build under a new name (
1.2.3-2), put the revision inversion; otherwise the version compares equal and the new file is never pinned. - Optional:
sizeand/orsha256per source (re-pin when upstream silently replaces the file behind the same URL; a re-cut can keep the same byte count, so prefersha256when upstream publishes one),releaseUrlandreleaseNotesfor the metainfo. With bothsha256andsizethe pin is taken without a download. - GitHub release asset URLs need none of that: update-pins reads the asset’s
digestandsizefrom the releases API, which both catches an in-place re-upload and pins a new version without downloading it. - A vendor that serves one unversioned URL (
app_amd64.deb) often has an electron-updater feed beside it (latest-linux.yml) withversionandreleaseDate: read the version there and return the fixed URL (UpNote). Until the next re-pin after an upstream re-cut, the recorded sha256 no longer matches, so the pin refresh is what keeps such an app installable. - Match the asset name tightly (anchor it, include the arch and extension). A loose pattern picks whichever variant sorts first when upstream adds one.
- A tight match has a failure mode of its own: when upstream renames the
asset or the tag prefix, a resolver that walks the release list for the
newest match quietly settles on the release already pinned, and the app
stops updating without anything failing. Prefer
releases/latestand let a missing asset fail. Walk the list only when upstream really does publish releases without a Linux build (Windows first, Linux a day later; one repo for several products), and say in a comment which releases you skip and why. - When you walk the list, choose by
published_ator by version, never by list position. The API orders by tag creation, so a re-cut (2026.11-r3) whose tag was created before its predecessor was published lists after it. - The sweep checks every GitHub-hosted resolver’s pick against upstream, and
pr-checks (
resolver-check) does the same for each resolver a PR adds or changes, failing the PR on a hit or on a resolver that exits non-zero: a newer, non-prerelease release that has been out for three hours, carries a Linux-looking asset and is not numbered lower lands the app in the “picked an old release” alert. When those releases are other products or another channel, setupdate.stale_ignoreinflatpark.ymlto a regex matching their tag or release name ('Nightly|Beta','^(?!ffmpeg-full-)'), with a comment saying why. Check locally withprintf '%s\t%s\n' <id> "$(cd registry/<id> && ./resolve-update.sh | tr -d '\n')" > /tmp/r.tsv && node scripts/check-stale.mjs /tmp/r.tsv. - Use
${GITHUB_TOKEN:+-H "Authorization: Bearer $GITHUB_TOKEN"}on GitHub API calls; unauthenticated runs are rate-limited and fail. - GitHub release assets carry
digest(sha256:…) andsizein the API, so a first pin by hand doesn’t need the download either.
Templates:
#!/usr/bin/env bash
# GitHub releases
set -euo pipefail
repo="owner/name"
rel="$(curl -fsSL ${GITHUB_TOKEN:+-H "Authorization: Bearer $GITHUB_TOKEN"} \
"https://api.github.com/repos/$repo/releases/latest")"
version="$(jq -r '.tag_name | ltrimstr("v")' <<<"$rel")"
url="$(jq -r '.assets[] | select(.name | test("linux-x86_64\\.tar\\.gz$")) | .browser_download_url' <<<"$rel" | head -n1)"
date="$(jq -r '.published_at' <<<"$rel" | cut -c1-10)"
[ -n "$version" ] && [ -n "$url" ] || { echo "failed to resolve release" >&2; exit 1; }
jq -n --arg v "$version" --arg d "$date" --arg u "$url" \
'{version:$v, releaseDate:$d, sources:[{filename:"app.tar.gz", url:$u}]}'
#!/usr/bin/env bash
# A vendor endpoint that reports the version
set -euo pipefail
version="$(curl -fsSL https://vendor.example/latest.txt)"
jq -n --arg v "$version" \
'{version:$v, sources:[{filename:"app.deb", url:("https://vendor.example/app-"+$v+"_amd64.deb")}]}'
Run it locally with cd registry/<id> && ./resolve-update.sh and check that
the URL it prints downloads.
What an update changes
Three triggers run the same steps:
- Push: upstream’s release workflow calls FlatPark’s hook, and
upstream-publish.ymlhands that one app toupdate-app.ymlwithin minutes. - Pull:
update-check.ymlruns every resolver twice a day (06:17 and 18:17 UTC) and catches everything else. - By hand:
gh workflow run update-app.yml -f app_id=<app-id>updates one app now. Use it when the sweep missed a release, typically one whose Linux asset was uploaded after the sweep ran. It also settles that app’s CI alerts: a resolver that works again drops its row from the sweep’s resolver-failure issue, and a payload that unpacks closes its “no longer unpacks” issue.
The steps:
- Run
resolve-update.sh. If itsversionequals the newest<release>in the metainfo, stop. scripts/update-pins.mjsdownloads every source, computes its SHA-256 and size, rewrites the managed block and prepends a<release>to the metainfo. These two files are the only ones an update touches.check-apply-extra.shunpacks the new download with the app’sapply_extra.sh. If that fails, the app keeps its old pin and an alert issue is opened. If only the download failed, the pin is skipped quietly and the next run tries again.- A PR is opened and merged by CI without review, as long as the diff touches
only those two files (a resolver that writes anywhere else stops the merge).
publish.ymlthen rebuilds only the changed apps, signs the repo and uploads it. - Users get the update on their next
flatpak update, which downloads the new file and runsapply_extra.shagain.
When upstream sends the update PR itself. Some upstreams open a FlatPark PR
from their release workflow that carries more than the pins: release notes,
screenshots, a changed finish-args. The pin refresh would race that PR and
ship the release without them. Set auto: false under update: with a comment
saying why; both triggers then skip the app and the upstream PR is reviewed and
merged by hand. Keep the resolver: when the upstream PR doesn’t come,
FORCE=1 ./scripts/check-updates.sh <id> runs it anyway.
debian-pins.yml re-pins the managed Debian blocks on its own schedule, because
Debian deletes a superseded package from its pool and new installs would fail
on the download while the app itself hasn’t changed.
Dependency pins
A second download that has its own releases (a tool such as uv or yt-dlp, a
Node.js runtime, a Python wheel) stays on whatever version it was pinned at:
the app’s resolver only moves the app. To keep it current, wrap its sources in
# BEGIN MANAGED DEPENDENCY <id> … # END MANAGED DEPENDENCY and describe it
in registry/<id>/dependencies.json:
[
{
"id": "uv",
"provider": "github",
"repo": "astral-sh/uv",
"sources": [
{ "filename": "uv.tar.gz", "arch": "x86_64", "asset": "uv-x86_64-unknown-linux-gnu.tar.gz" },
{ "filename": "uv.tar.gz", "arch": "aarch64", "asset": "uv-aarch64-unknown-linux-gnu.tar.gz" }
]
}
]
There are four providers:
github: the newest non-prerelease release ofrepo.assetis the exact asset name;{version}stands for the tag without itsv. For Ghostscript,tagFormat: "ghostscript"checks the compact tag against the dotted snap version.pypi: the newest stable, non-yanked release ofprojectthat has a wheel ending inwheelSuffix(-cp312-cp312-win_amd64.whl).series("2.2") keeps it on that release line.node: the newest LTS release of Node.jsmajor.android-platform-tools: the newest stable Linux x86_64 platform-tools archive from Google’s SDK repository, using a versioned URL.
dependency-pins.yml re-resolves them weekly. It unpacks every changed pin with
the app’s apply_extra.sh on each architecture, then opens a PR for a human to
merge; it never bumps the app’s version. The block holds only extra-data
sources, one per entry in sources, and
scripts/check-dependency-coverage.mjs (run by pr-checks) fails when the block
and the policy disagree.
Leave a download out when its version is held on purpose, and say why in a
manifest comment (an ABI the app’s code needs, a release that broke it). A
policy that could take the app onto a release line nobody has checked gets a
series, as com.epri.OpenDSS does for numpy.
Limits
What follows from extra-data, and what to do instead:
- No source builds. An official release makes them unnecessary, and they would cost CI time and storage on every update. When there is no usable official release, the app can come from a build repository instead.
- A library or tool the runtime lacks: an existing prebuilt stack
first, else a second extra-data download (an upstream binary, a Debian
package) or a new stack (the order).
Don’t compile it into
/app. - The download must be a stable public URL with fixed bytes. A URL that always serves “the latest” changes under the pin and fails installs until it is re-pinned; resolve it to a versioned URL. A CDN that serves different bytes per region breaks installs in some regions.
- Nothing exported comes from the payload. Desktop entry, icon, metainfo and D-Bus service files are ours, written at build time.
- The payload runs unmodified. Open-source apps get nothing injected and no file changed. Closed-source apps may, when nothing else works, and the metainfo says what and why. See the packaging levels.
- One runtime major for the whole catalog. An app that only works on an older runtime is not listed until it works on the current one.
Build repositories
Some apps people want can’t be pinned straight from upstream:
- upstream publishes no Linux release package;
- the Linux build is hard enough to assemble that it needs its own pipeline;
- the only Linux install path is an installer someone maintains on their own.
Such an app can come from a separate public repository that produces the
release. It is usually named <app>-release, but any name will do, and it does
not have to belong to the flatpark organization. It builds or bundles the
app the way upstream does, with upstream’s binaries or source unmodified and
within upstream’s licence, and publishes versioned releases. The package pins
those releases as extra-data, like any vendor download. Adding one needs a
maintainer’s agreement first.
Upstream doesn’t know these builds exist, so their problems must never land on upstream’s tracker:
websiteand the metainfohomepagestay upstream’s official site.source_url, and the metainfovcs-browser,helpandbugtracker, point at the build repository, the last two at its issues. If it takes no issues, they point at FlatPark’s tracker. They never point at upstream.- Drop other links that send users to upstream for help, such as a forum or a chat FAQ. Links for taking part in the upstream project, such as translation or donation, can stay.
- The description says it is not upstream’s build and names the repository that makes it.
catalog.stars_reponames upstream’s repository, so the site shows upstream’s stars, not the build repository’s.
Bugs that turn out to be upstream’s are reported upstream by the build repository’s maintainer, not by sending users there.
| App | Build repository | Why |
|---|---|---|
| AyuGram | jing2uo/ayugram-release | no official Linux build |
| OpenModelica | rhgKc2yp/OMEdit-release | official binaries need Qt WebEngine and runtime libraries bundled around them |
| Writing Tools | rhgKc2yp/writingtools-release | no official Linux build |
| DaVinci Resolve, Studio | night199uk/resolve-flatpak | the Linux installer is a personally maintained one |