yaver-cli 1.99.268 → 1.99.270
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/package.json +1 -1
- package/src/postinstall.js +12 -0
package/package.json
CHANGED
package/src/postinstall.js
CHANGED
|
@@ -29,6 +29,10 @@ function envEnabled(name) {
|
|
|
29
29
|
return raw === "1" || raw === "true" || raw === "yes";
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
function isIotEdgeInstall() {
|
|
33
|
+
return envEnabled("YAVER_IOT_EDGE") || envEnabled("YAVER_EDGE_LITE");
|
|
34
|
+
}
|
|
35
|
+
|
|
32
36
|
function isGlobalInstall() {
|
|
33
37
|
if (envEnabled("YAVER_FORCE_POSTINSTALL_BOOTSTRAP")) {
|
|
34
38
|
return true;
|
|
@@ -465,6 +469,14 @@ async function main() {
|
|
|
465
469
|
refreshCurrentSymlink(installedBinary);
|
|
466
470
|
bounceRunningAgent();
|
|
467
471
|
|
|
472
|
+
if (isIotEdgeInstall()) {
|
|
473
|
+
ensurePathOnUnix();
|
|
474
|
+
ensureZshenvRescue();
|
|
475
|
+
addNpmGlobalBinToProcessPath();
|
|
476
|
+
log("IoT edge mode enabled: installed the Go agent only; skipped mobile, Hermes, Playwright, voice, sandbox, and local coding-runner bootstrap.");
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
|
|
468
480
|
// Platform-aware hermesc provisioning. Downloads the binary matching
|
|
469
481
|
// this host from the react-native npm tarball, caches it under the
|
|
470
482
|
// CLI install dir + ~/.yaver so `yaver-push` works offline after.
|