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.

13 min readUpdated 2 December 2026Store package · submission · updates

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.

  1. Set a stable publisherId and appId.
  2. Declare only the permissions and capabilities the app uses.
  3. Sign the exact manifest bytes; every payload file is covered by SHA-256.
  4. Verify against the development trust store before publishing.
  5. 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.

notes.package.json
{
  "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.

index entry
{
  "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"]
}
FieldRule
idValid rumahl app ID and the same ID as the manifest
titleDisplay title, no claim beyond the package
versionThe package version; updates require a newer version and same publisher
packageUrlHTTPS, relative to the index or absolute
category / categoriesUp to six categories
rating / downloadsOptional numbers; never invent them
permissionsHuman-readable source metadata; the manifest is authoritative
iconUrl / screenshotsSame 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.

  1. Build and sign the release offline. Keep the private signing key outside CI.
  2. Attach release.tar.gz to a draft GitHub release. It contains package.json, package.sig.json and the payload files at its root.
  3. Publish the release. A workflow in the app repository dispatches app-release to rumahl/apps with a GitHub App token, not a personal access token.
  4. 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.
  5. The catalog workflow regenerates store.json and 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.

  1. New app: the issue becomes a checklist. One pull request adds apps/<id>/listing.json, a real icon and screenshots, the publisher key in trust/trust-store.json and the source repository in store.config.json.
  2. 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.
  3. After the listing: a published signed release dispatches app-release and updates the catalog without a pull request. The storefront reads the new catalog at runtime and needs no deployment.
  4. Without the dispatch workflow: open an issue for each version, or ask a maintainer to run Repository updater with 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