Chapters

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:

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, system or service. See Installing and updating.
permissions
A list drawn from network, audio, camera, storage, photos, notifications, documents, keychain and remote-desktop. The packager rejects any other value. Declare only what the app uses.
Note

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.toml are 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 with springboard --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:

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.

Important

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.

Note

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.

Note

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

KindSource directoryBehaviour
app (default)apps/A user app with a home screen entry. It can be removed.
system-appapps/A preinstalled app that cannot be removed. Updated from the store like other apps.
systemsystem/A component with no home screen entry. It may declare provides, such as keyboard. Installed and updated in the background.
servicesystem/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

RequestReturns
GET /api/v1/pc/apps.jsonThe PC catalogue: the newest version of each desktop app and each system component.
GET /api/v1/pc/apps.jsonThe 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.jsonThe operating system's update manifest.

Each catalogue entry has these fields:

id, name, version, summary, category
Taken from the newest package's manifest. summary and category default to empty and Other.
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 null when the store has no icon.
min_shell, architecture, kind, provides
The compatibility fields from the manifest. kind is app for an unknown kind.
changelog
The release notes, newest first, as version, date and notes.
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-run reports the available updates and changes nothing. --app limits 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.