Versioning
Use one product release version across the app and a monotonic build number for each store artifact. Also retain the exact Git revision and build inputs so support can identify the running bytes.
| Identity | Purpose | Example |
|---|---|---|
| Product version | Human-facing release | 2.4.0 |
| Platform build number | Store/sideload ordering | 24017 |
| Git revision | Exact source | a1b2c3d |
| Environment and app profile | Resolved behavior | prod, brand-b |
| Artifact checksum | Exact released bytes | SHA-256 |
Roku and emulator identity
In the current sample-project layout:
- Roku reads
major_version,minor_version, andbuild_versionfromplatforms/roku/src/manifest. - Browser emulator previews can include the same project-owned release record for diagnostics; they are development artifacts for the Roku application.
The shared package.json version may identify the repository or sample rather than a customer release. Do not make it the product version unless the project explicitly defines that contract.
Runtime Build Identity
If the app exposes version information in a support screen or logs, generate one sanitized runtime file during the release build. Include only non-secret data such as product version, build number, Git revision, environment, app profile, and build timestamp.
assets/meta/build-info.json is a reasonable project convention, not a Hosanna-required filename. Add it to the Roku package and browser emulator asset-copy rules, and verify the generated metadata in the Roku release package.
Release Rules
- Allocate product and platform versions before building.
- Stamp Roku output and its emulator preview from the same release record.
- Build and test immutable artifacts.
- Record checksums, config-source manifest, and toolchain versions.
- Tag the source only when the tested artifacts are accepted.
- Never reuse a platform build number for different bytes.