mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 06:51:16 +08:00
fix(tirith): detect Android/Termux as Linux ABI-compatible
In _detect_target(), platform.system() returns "Android" on Termux, not "Linux". Without this change tirith's auto-installer skips Android even though the Linux GNU binaries are ABI-compatible.
This commit is contained in:
@@ -186,9 +186,10 @@ def _detect_target() -> str | None:
|
||||
system = platform.system()
|
||||
machine = platform.machine().lower()
|
||||
|
||||
# Android (Termux) is ABI-compatible with Linux — reuse Linux binaries.
|
||||
if system == "Darwin":
|
||||
plat = "apple-darwin"
|
||||
elif system == "Linux":
|
||||
elif system in ("Linux", "Android"):
|
||||
plat = "unknown-linux-gnu"
|
||||
else:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user