fn locate_runtime_binary(target: BuildTarget) -> Result<PathBuf>Expand description
Looks for the khora-runtime binary for target in:
- Sibling of the editor binary — the canonical layout once the
engine release archive is unpacked, and what
cargo buildproduces intarget/<profile>/. - Sibling profile fallback — when the editor runs from
target/release/, also checktarget/debug/(and vice-versa). Lets a contributor runningcargo run -p khora-hub --releasefind a runtime that was built in debug bycargo buildorcargo hub-dev. - Hub engine cache —
~/.khora/engines/<version>/runtime/is the layout produced byhub::download::start_downloadwhen the matchingkhora-runtime-<host>artifact is present in the GitHub release.
Non-host targets always fall through today: the hub only fetches its own host architecture from a release, and dev builds only produce the host runtime. Cross-target build-template caching is a future expansion that re-uses this same lookup once the hub fetches all three runtime archives.