@tantawowa/hosanna-tools 3.25.0 → 3.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/build-info.json +3 -3
- package/dist/cli.js +3 -0
- package/dist/cli.js.map +1 -1
- package/dist/lib/app-config-compiler.js +20 -12
- package/dist/lib/app-config-compiler.js.map +1 -1
- package/dist/native/templates/apple/project.yml +4 -0
- package/dist/run/android-emulator.d.ts +2 -1
- package/dist/run/android-emulator.js +40 -8
- package/dist/run/android-emulator.js.map +1 -1
- package/dist/run/code-bundle-descriptor.d.ts +31 -0
- package/dist/run/code-bundle-descriptor.js +68 -0
- package/dist/run/code-bundle-descriptor.js.map +1 -0
- package/dist/run/executor.d.ts +19 -0
- package/dist/run/executor.js +142 -45
- package/dist/run/executor.js.map +1 -1
- package/dist/run/hsconfig-static-assets.d.ts +1 -0
- package/dist/run/hsconfig-static-assets.js +7 -5
- package/dist/run/hsconfig-static-assets.js.map +1 -1
- package/dist/run/planner.d.ts +14 -0
- package/dist/run/planner.js +172 -60
- package/dist/run/planner.js.map +1 -1
- package/dist/run/run-config.d.ts +7 -0
- package/dist/run/run-config.js +28 -4
- package/dist/run/run-config.js.map +1 -1
- package/dist/run/web-build.d.ts +14 -0
- package/dist/run/web-build.js +42 -0
- package/dist/run/web-build.js.map +1 -0
- package/dist/support-tools/apple-bundler.d.ts +2 -1
- package/dist/support-tools/apple-bundler.js +11 -2
- package/dist/support-tools/apple-bundler.js.map +1 -1
- package/dist/vite.d.ts +4 -0
- package/dist/vite.js +49 -11
- package/dist/vite.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -431,6 +431,8 @@ Supported inputs include `file/line: pkg:/components/source_0.brs(7475)`, `at ..
|
|
|
431
431
|
|
|
432
432
|
Production JavaScript bundles strip `console.*` calls by default. Configure this through the normal overlay chain with `build.stripLogs`: set it to `false` in `build-config/prod.json` to retain production logs, or in `build-config/prod.apple.json` / `build-config/prod.web.json` for a platform-only exception. Non-production environments keep logs unless their overlay explicitly enables stripping. Apple `prod` builds use Xcode `Release`; other environments continue to use `Debug`.
|
|
433
433
|
|
|
434
|
+
Native Apple and Android phone/TV builds also emit a descriptor for the final packaged code bytes. See [Packaged code bundle descriptors](docs/code-bundle-descriptors.md) for version precedence, deterministic artifact paths, and the integrity-versus-authenticity security boundary.
|
|
435
|
+
|
|
434
436
|
Roku builds also populate `assetServer.baseUrl` when an overlay does not define it. `hst run` uses the resolved project Vite port and a reachable LAN IPv4 address. Override either the complete URL with `HS_ASSET_SERVER_BASE_URL`, or its parts with `HS_ASSET_SERVER_HOST` and `HS_ASSET_SERVER_PORT`; the equivalent `HOSANNA_ASSET_SERVER_*` names are also accepted. Explicit build-config overlays remain authoritative. The legacy `game.assetBaseUrl` setting is generated independently for backward compatibility.
|
|
435
437
|
|
|
436
438
|
Tizen/webOS builds prefer exact target overlays and fall back to the matching
|
package/dist/build-info.json
CHANGED
package/dist/cli.js
CHANGED
|
@@ -117,6 +117,7 @@ function runPlanFlagsFromCliArgs(args, format) {
|
|
|
117
117
|
noLogs: rawHasFlag('no-logs') ? Boolean(args['no-logs']) : undefined,
|
|
118
118
|
logs: rawHasFlag('logs') ? Boolean(args.logs) : undefined,
|
|
119
119
|
sourceRoot: rawHasFlag('source-root') ? args['source-root'] : undefined,
|
|
120
|
+
outputRoot: rawHasFlag('output-root') ? args['output-root'] : undefined,
|
|
120
121
|
appPackage: rawHasFlag('app-package') ? args['app-package'] : undefined,
|
|
121
122
|
files: rawHasFlag('files') ? args.files : undefined,
|
|
122
123
|
deployTimeoutMs: rawHasFlag('deploy-timeout-ms') ? args['deploy-timeout-ms'] : undefined,
|
|
@@ -2070,6 +2071,7 @@ async function runEnvironmentCommand(action, verbose) {
|
|
|
2070
2071
|
.option('hsc-project', { type: 'string', describe: 'Explicit Roku HSC project file for hst build planning' })
|
|
2071
2072
|
.option('config', { type: 'string', describe: 'Back-compatible alias for --hsconfig / --hsc-project' })
|
|
2072
2073
|
.option('source-root', { type: 'string', describe: 'Roku source root to preserve in build planning output' })
|
|
2074
|
+
.option('output-root', { type: 'string', describe: 'Project-relative root for an isolated Browser or Roku build and all generated intermediates' })
|
|
2073
2075
|
.option('build-cmd', { type: 'string', describe: 'Override the platform bundle command; parsed and executed without a shell' })
|
|
2074
2076
|
.option('vite-config', { type: 'string', describe: 'Target Vite config for Browser/Tizen/webOS builds' })
|
|
2075
2077
|
.option('signing-profile', { type: 'string', describe: 'External Samsung certificate profile name (env: TIZEN_SECURITY_PROFILE)' })
|
|
@@ -2081,6 +2083,7 @@ async function runEnvironmentCommand(action, verbose) {
|
|
|
2081
2083
|
.example('$0 build apple-watch dev sim --device "Apple Watch Series 11 (46mm)"', 'Build the paired Apple Watch simulator target')
|
|
2082
2084
|
.example('$0 build wear-os dev sim --device "Wear_OS_Large_Round"', 'Build the Wear OS emulator target')
|
|
2083
2085
|
.example('$0 build browser dev emulator', 'Resolve Browser runtime build config without opening a browser')
|
|
2086
|
+
.example('$0 build roku dev device --output-root .hosanna-tools/build/roku-dev', 'Build Roku into an isolated output tree')
|
|
2084
2087
|
.example('$0 build tizen dev device --signing-profile samsung-tv-dev', 'Create a signed Samsung .wgt without contacting a TV')
|
|
2085
2088
|
.example('$0 build webos dev device', 'Create an LG .ipk without contacting a TV'), async (args) => {
|
|
2086
2089
|
await runRunPlanCommand('build', args);
|