Skip to content

EN RCC Package Format

Cavanshirpro edited this page Sep 20, 2026 · 2 revisions

RCC Package Format — LeoMiniGames v0.7.0

The normal downloadable game/mod format remains rcc-v1. v0.7.0 strengthens validation and negotiation without inventing a second package format solely to obtain the new API model.

Canonical authoring layout

New packages should build their RCC with internal resource prefix /:

/
├─ manifest.json
├─ Main.qml
├─ assets/
├─ i18n/
├─ sfx/
└─ LICENSE              # when required by the selected package license/policy

The host mounts a package with ID example_game below /mods/example_game, so its entry is addressed as qrc:/mods/example_game/Main.qml. Do not bake /mods/<id> into newly authored RCCs. That embedded prefix exists only as a compatibility path for historical packages.

Legacy prefix compatibility

A historical RCC whose internal resources already live under /mods/<id> may still be accepted when every resource remains inside exactly that package namespace. A package that also contains host-looking namespaces such as /themes or /i18n is not given a global injection path merely for compatibility. Namespace containment is a security boundary.

Manifest and entry paths

manifest.json uses the legacy minimum id, name, version, entry; modern packages may add api_version, min_api_version, required_capabilities and other optional fields. The entry path, icon path and license path must be relative, normalized package paths. Path traversal and package identity mismatches are validation failures.

The canonical package ID pattern is ^[a-z0-9][a-z0-9_.-]{1,63}$.

Build

A typical package build remains:

rcc -binary mod.qrc -o <id>-<version>.rcc

The exact Qt rcc path depends on the selected Qt kit. The built RCC should be inspected before publication: confirm manifest.json, the declared entry point and every referenced asset actually exist under the intended resource namespace.

Install/update safety

The host validates identity, entry path, size/integrity metadata and resource namespace before activation. Replacement installation uses a rollback-oriented path so a failed activation should not casually destroy the previously working package. Treat install, update, reinstall and removal as separate test cases.

Trust is not packaging metadata

publisher, plugin_level, official, verified, reviewed, native or similar strings in local package data do not manufacture YoungLion trust. RCC packages are the scoped QML/JS path. Native/L3 is a distinct reviewed high-trust path established through authoritative metadata and policy.

Network

For a modern installed v0.7 package, HTTPS runtime access is capability-controlled. Use network.https in capabilities, and also in required_capabilities when the package cannot function without it. Legacy installed v0.5/v0.6 packages retain the historical compatibility path. Developer-local RCC networking remains deliberately disabled.

Author checklist

  • id, version and entry are correct.
  • New package uses internal prefix /.
  • No resource escapes or impersonates host namespaces.
  • Main.qml and referenced assets are in the RCC.
  • Modern hard requirements use required_capabilities.
  • Package licensing metadata and license file agree.
  • Trust/native permission is not self-declared as authority.
  • Clean install, update, rollback and uninstall were tested.

See Manifest Reference, Compatibility, Security Model and the pinned docs/sdk/MANIFEST.md.

Clone this wiki locally