Stores · publishing
Publish an app.
A store publishes two things: a signed package document and a catalogue entry. The package carries the trust; the index carries the discovery and front-page metadata. The public rumahl store is store.rumahl.com; package downloads and updates resolve to github.com/rumahl/apps. Apps and themes share the same store.
1. Prepare the signed package
Start with a verified package directory containing package.json, package.sig.json and the payload files. The signing and verification steps are in Build your first app.
- Set a stable
publisherIdandappId. - Declare only the permissions and capabilities the app uses.
- Sign the exact manifest bytes; every payload file is covered by SHA-256.
- Verify against the development trust store before publishing.
- Test install and launch from a local source, not only from a directory import.
2. Build the store package document
A source package URL returns a JSON envelope with base64 file contents. The shell validates the envelope, then sends the files through the authenticated import endpoint. The Rust importer verifies the signature and every digest.
{
"packageVersion": 1,
"files": [
{ "path": "package.json", "content": "<base64>" },
{ "path": "package.sig.json", "content": "<base64>" },
{ "path": "frontend/index.html", "content": "<base64>" },
{ "path": "frontend/main.js", "content": "<base64>" }
]
}
Keep the paths exactly as they appear in the package manifest. The package document is transport, not a second manifest; do not rename or rewrite files during packaging.
3. Add the catalogue entry
The source index points at the package document and supplies display metadata. Required fields fail the index when missing; optional metadata is ignored when invalid.
{
"id": "com.example.notes",
"title": "Notes",
"version": "1.0.0",
"summary": "A local-first notes app.",
"publisher": "Example",
"packageUrl": "https://store.example/packages/notes.package.json",
"category": "Productivity",
"rating": 4.8,
"downloads": 18400,
"featured": true,
"permissions": ["Read personal files", "Show notifications"],
"iconUrl": "https://store.example/media/notes-icon.png",
"screenshots": ["https://store.example/media/notes-screen.png"]
}
| Field | Rule |
|---|---|
id | Valid rumahl app ID and the same ID as the manifest |
title | Display title, no claim beyond the package |
version | The package version; updates require a newer version and same publisher |
packageUrl | HTTPS, relative to the index or absolute |
category / categories | Up to six categories |
rating / downloads | Optional numbers; never invent them |
permissions | Human-readable source metadata; the manifest is authoritative |
iconUrl / screenshots | Same origin as the index, supported image types, 8 MiB max |
4. Appear on the storefront
The front page is assembled from source metadata, not custom source HTML. Set featured: true to be preferred for the cover and The Edit; add categories, a real rating and a screenshot-led presentation. The chart and registry remain download/rating-driven.
5. Updates and removal
- An update needs a newer version and the same publisher identity.
- A package with a changed publisher is not an update of the old app.
- Uninstall revokes grants and consents; retained data is not silently inherited by a new installation.
- Removing an app from the index does not uninstall it from a device.
- Removing a source makes its catalogue unreachable; it does not revoke already installed packages.
6. Release automation
The official store imports signed releases from each app's own repository. The app repository is the build and signing boundary; rumahl/apps is the catalogue and package store.
- Build and sign the release offline. Keep the private signing key outside CI.
- Attach
release.tar.gzto a draft GitHub release. It containspackage.json,package.sig.jsonand the payload files at its root. - Publish the release. A workflow in the app repository dispatches
app-releasetorumahl/appswith a GitHub App token, not a personal access token. - The repository updater checks the app against
store.config.json:apps, downloads the fixed asset through the GitHub API, rejects traversal and links, validates the signature and commits the release. - The catalog workflow regenerates
store.jsonand the package documents. The Vercel storefront reads the catalog at runtime; it is not rebuilt.
The updater cannot sign and never accepts a caller-supplied URL. A failed signature or a malformed archive leaves the repository unchanged. See release automation and the app release workflow template.
For the official store, a maintainer merges the submission after validation. New publisher keys and validator/workflow changes require a separate security-approved review.
7. Submit to the public store
The public catalog lives in github.com/rumahl/apps; there is no separate submission repository. The store's submit page opens an App submission issue.
- New app: the issue becomes a checklist. One pull request adds
apps/<id>/listing.json, a real icon and screenshots, the publisher key intrust/trust-store.jsonand the source repository instore.config.json. - Listed app: the submission workflow imports the signed release from the configured repository into a pull request, validates it and links the issue. A maintainer reviews and merges.
- After the listing: a published signed release dispatches
app-releaseand updates the catalog without a pull request. The storefront reads the new catalog at runtime and needs no deployment. - Without the dispatch workflow: open an issue for each version, or ask a maintainer to run
Repository updaterwith the app id and version. Both use the same importer and validator.
8. Publish checklist
- Package verifies against the intended trust store.
- Manifest and index use the same app ID and version.
- No secret, keystore or private source map is inside the payload.
- Every permission is used and explained; optional permissions are handled when denied.
- If the app needs an external service or account, the listing states the feature and what still works without it.
- Icon and screenshots are real, same-origin and show the actual app.
- A local install, launch, denial path and uninstall are tested.
- The listing does not imply review, certification or availability the platform does not provide.
Next
- Build a store source — index, front page and trust.
- Review and release — a repeatable publisher preflight.
- Certification and trust — what is actually verified.
- Permissions and capabilities — consent and inter-app calls.
Was this page helpful?