Docs Distribution
Publishing
This chapter covers the app package format, how you build and pack an app, how you version and publish it to the App Store, and how devices install and update it. It also covers the store API and the prebuilt apps that the project repackages from upstream releases.
The .aap package
An .aap file is a BifrOSt app package. It is an uncompressed POSIX (ustar) tar archive. The archive holds these entries:
manifest.toml, the app's identity and metadata.CHANGELOG.md, copied from the app directory. The packager and the store read it.- The executable named by
exec. Optional for system packages that have no UI. - The icon named by
icon, a 180 × 180 PNG. - An optional
assets/tree, installed beside the executable.
The manifest requires these keys: id, name, version, exec, icon, min_shell, summary and category. Desktop apps also set architecture = "x86_64-linux".
- id
- A reverse-DNS identifier, such as
is.olibuijr.files.desktop. Letters, digits,.,-and_only, with at least one dot. - version
- Semantic version in the form
x.y.z. - exec
- The executable's path inside the package. It must be relative and must not contain
... - icon
- The icon's path inside the package. It must be a 180 × 180 PNG.
- min_shell
- The oldest shell version that can run the app.
- kind
app(the default),system-app,systemorservice. See Installing and updating.- permissions
- A list drawn from
network,audio,camera,storage,photos,notifications,documents,keychainandremote-desktop. The packager rejects any other value. Declare only what the app uses.
The packager rejects a manifest with an unknown kind, a malformed version, or a provides key on any kind other than system.
Building and packing
The app tool is tools/pc-app.py, run from the repository root. Pass it the app's directory name under springboard/apps/, for example files. The bifrost pc app command runs the same tool.
- tools/pc-app.py build <dir>
- Builds the executable in the fast profile and prints its path. Apps with an
upstream.tomlare not compiled; the pinned release is fetched instead. - tools/pc-app.py pack <dir>
- Builds, strips the executable and writes
out/pc-apps/<id>-<version>.aap. The package stays local. Use it to test a package withspringboard --install-package. - tools/pc-app.py publish <dir>
- Packs the app and publishes it to the store. See Publishing.
- tools/pc-app.py info <dir>
- Prints the app's id, version and architecture, and the path of its executable.
The packager, springboard/tools/aap.py, also runs on its own. aap.py pack <dir> --bin PATH --out DIR writes a package, and aap.py info FILE.aap lists what a package contains. pc-app.py calls it with the stripped executable.
Packing fails, or pc-app.py stops, in these cases:
- The icon is not 180 × 180 pixels.
- The
CHANGELOG.mdfile has no## <version>section with at least one-note. - The app directory is in the wrong place for its kind.
appandsystem-appbelong underapps/, andsystemandservicebelong undersystem/. - The manifest's
versiondoes not matchCargo.toml. This applies to apps built from Rust source. Apps with anupstream.tomlhave noCargo.toml. - The manifest's
architectureis notx86_64-linux.pc-app.pyaccepts only desktop packages.
Versions and the changelog
Every release changes three things together: the version in manifest.toml, the version in Cargo.toml, and a new section in CHANGELOG.md.
## 1.4.0 — 2026-10-10
- Adds a Recent Files list to the sidebar.
- Fixes a crash when a folder is renamed while open.
The store reads the changelog. It shows the newest entry as What's New and the older entries as version history. Each section needs at least one - note.
A published version cannot be replaced. The store caches each versioned .aap file as immutable for a year. Publishing different content under the same version is refused. Bump the version for every change, including a rebuild.
Publishing
tools/pc-app.py publish packs the app and hands the package to the store's publishing script. The script copies the package into the store's data directory under its app id and extracts the icon. The store index then lists the app. Install the published version from the App Store on a device.
- The store lists the highest version of each app id. An older package stays available at its own URL.
- Desktop apps are built for
x86_64-linuxand appear only in the PC catalogue,/api/v1/pc/apps.json. - System components (
kind = "system") also appear in the PC catalogue, whatever their architecture. - Submissions from other developers are not yet available. Publishing is done by the project.
The store refuses a package whose changelog has no entry for its version. Add the entry before you publish.
Installing and updating
Installation and updates are pull-based. The device asks the store for updates. Nothing is pushed to it. Each app is installed beside any earlier version, so a failed update can be undone.
Install layout
An installed app lives under apps/<id>/<version>/. The current symbolic link points at the version that runs. Installing a new version switches current atomically and keeps the previous version. The shell keeps only the new and the previous version. rollback switches current back to the kept version.
Updating without a restart
Installing an update does not restart the shell. The shell rescans the app's manifest, and a running process of that app receives a Quit message. The next launch uses the new version. An app installed from the App Store gets its home screen tile at once. An app installed from the command line appears after the shell restarts.
When the device checks
The shell checks the store about 30 seconds after it starts and when Wi-Fi connects. After that it checks every 15 minutes. A check is skipped in Low Power mode unless the device is charging. A check finds updates, shows a notification once for each new version, and adds a badge to the App Store. The Updates tab lists the available updates.
System components (kind = "system") always install in the background. With Settings › Software Update › Automatic Updates on, which is the default, ordinary apps update in the background too, like the App Store on macOS. An app that is open keeps its update until it quits, so a window is never restarted under the user. With Automatic Updates off, updates wait in the App Store's Updates tab.
Package kinds
| Kind | Source directory | Behaviour |
|---|---|---|
app (default) | apps/ | A user app with a home screen entry. It can be removed. |
system-app | apps/ | A preinstalled app that cannot be removed. Updated from the store like other apps. |
system | system/ | A component with no home screen entry. It may declare provides, such as keyboard. Installed and updated in the background. |
service | system/ | A background daemon. The system's service supervisor keeps it running and restarts it with backoff. |
To install a published app from the command line, run springboard --install-store-app <id> as root. It uses the same download, hash check and unpacking as the App Store.
Store API
| Request | Returns |
|---|---|
GET /api/v1/pc/apps.json | The PC catalogue: the newest version of each desktop app and each system component. |
GET /api/v1/pc/apps.json | The older catalogue. Desktop apps use the PC catalogue above. |
GET /store/<id>/<file> | A package (.aap) or an icon (icon.png). Range requests are supported. Packages are cached for a year. |
GET /ota/springboard/latest.json | The operating system's update manifest. |
Each catalogue entry has these fields:
- id, name, version, summary, category
- Taken from the newest package's manifest.
summaryandcategorydefault to empty andOther. - size, sha256
- The package's size in bytes and its SHA-256 digest. The device checks the digest before it installs.
- icon, package
- The URL of the icon and the URL of the package. The icon is
nullwhen the store has no icon. - min_shell, architecture, kind, provides
- The compatibility fields from the manifest.
kindisappfor an unknown kind. - changelog
- The release notes, newest first, as
version,dateandnotes. - permissions, updated
- The declared permissions, and the time the package file was last written as a Unix timestamp.
The catalogue is returned with Cache-Control: no-cache and allows requests from any origin. Entries are sorted by name.
Prebuilt upstream apps
Some apps are not compiled from this repository. The twelve ArtCraft apps, such as PhotoCraft, are repackaged from pinned release tarballs published by their upstream project. Such an app directory has an upstream.toml file in place of Cargo.toml.
- repo
- The GitHub repository, in the form
owner/name. - url
- The release tarball's download URL.
- sha256
- The tarball's SHA-256 digest. The download is refused when the digest does not match.
- binary
- The path of the executable inside the tarball. Only this file ships. Command-line variants are left out.
- licenses
- The tarball directory whose files are copied to
assets/licenses/in the package.
tools/pc-app.py build and pack download the tarball into out/upstream/, with a 120-second timeout, and reuse it while the digest matches. The app's version comes from manifest.toml, which you set by hand.
Checking for new upstream releases
tools/upstream-watch.py checks the GitHub releases of every app with an upstream.toml. When a release is newer than the packaged one, it pins the new tarball and its digest, bumps the manifest version, prepends a changelog entry, publishes the app and commits the app directory. One failing app does not stop the others.
- bifrost pc upstream [--dry-run] [--app NAME]
- Runs the watcher.
--dry-runreports the available updates and changes nothing.--applimits the check to one app, by directory name with or without-desktop.
A systemd user timer, tools/systemd/bifrost-upstream-watch.timer, runs the watcher once a day.