Binary InferenceIn development · no public release yet

Manifest reference

Every field of the draft manifest.

Fields

FieldTypeRequiredMeaning
schema_versionintegerYesVersion of the manifest format. Currently 1.
app_idstringYesA stable reverse-domain identifier such as za.co.example.Hello. Bound to a verified publisher by trusted registry data; the display name is never used as identity.
publisher_idstringYesThe publisher this app belongs to.
display_namestringYesThe name people see.
versionstringYesVersion text for display and compatibility. It does not authorise downgrades.
release_sequenceintegerYesA positive number that only ever increases for this app. Used to refuse older releases.
targetobjectYesThe platform and architecture the package was built for.
platform_apiobjectYesA range of Binary platform API numbers the app supports: { min, max }.
runtimeobjectYesThe platform-maintained runtime the app runs on, pinned by SHA-256 digest.
entrypointarray of stringsYesThe command that starts the app, as an argument list. Never a shell string. The first item is a path inside the package.
permissionsarrayYesCapabilities the app asks for, taken from the permissions registry. Empty when none are needed.
dependenciesarrayYesComponents the app needs. Draft 0.1 allows only the primary runtime and exact-digest components approved by policy.
filesarray of objectsYesEvery file in the payload with its path, size, SHA-256 digest and mode (0644 or 0755).
presentationobjectYesIcon path and a one-sentence summary for the Store.
licencestringYesAn SPDX identifier or a documented licence reference.

Example

hello-bap.json (placeholder digests)
{
  "schema_version": 1,
  "app_id": "za.co.example.Hello",
  "publisher_id": "example-publisher",
  "display_name": "Hello Binary",
  "version": "0.1.0",
  "release_sequence": 1,
  "target": { "platform": "binary-os", "architecture": "generic" },
  "platform_api": { "min": 1, "max": 1 },
  "runtime": {
    "id": "binary.native",
    "version": "1",
    "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
  },
  "entrypoint": ["bin/hello"],
  "permissions": [],
  "dependencies": [],
  "files": [
    { "path": "bin/hello", "size": 1234, "sha256": "0000000000000000000000000000000000000000000000000000000000000000", "mode": "0755" },
    { "path": "share/icon.png", "size": 5678, "sha256": "0000000000000000000000000000000000000000000000000000000000000000", "mode": "0644" }
  ],
  "presentation": { "icon": "share/icon.png", "summary": "A minimal example application." },
  "licence": "LicenseRef-Example"
}

Download the example Download the JSON Schema

Rules the verifier will apply

  • Duplicate JSON keys and unknown fields are rejected.
  • Every payload file must be in files, and the entrypoint must be one of them and executable.
  • Unknown mandatory permissions fail verification.
  • release_sequence must be higher than any release already accepted.