Modern Apps git

← MAOS.git

maos: invoke adevtool via its package launcher, not a global command

Commit
58e86c031bd7cc4a96dbce180ba6adfd6788674b
Author
Vayun Mathur <[email protected]>
When
2026-08-09 20:30 UTC (3 months ago)
Parents
a9c5eb2

Diff

build-maos.sh
diff --git a/build-maos.sh b/build-maos.shindex edcf5c1..5499b04 100755--- a/build-maos.sh+++ b/build-maos.sh@@ -191,7 +191,15 @@ phase_vendor() {     log "Extracting Pixel vendor files for $DEVICE (adevtool)"     cd "$TREE"; source build/envsetup.sh     yarn --cwd vendor/adevtool/ install-    adevtool generate-all -d "$DEVICE"+    # adevtool isn't a global command — envsetup only exposes it in some setups. Prefer the+    # package's own launcher, falling back to the PATH command if present.+    if [[ -x vendor/adevtool/bin/adevtool ]]; then+        vendor/adevtool/bin/adevtool generate-all -d "$DEVICE"+    elif command -v adevtool >/dev/null; then+        adevtool generate-all -d "$DEVICE"+    else+        yarn --cwd vendor/adevtool/ run adevtool generate-all -d "$DEVICE"+    fi }  phase_overlay() {