mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00: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:
parent
f347315e07
commit
99af222ecf
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue