feat(flagship): make S1 Duo native engine the primary default 'airalang' command, update install.sh and README.md

This commit is contained in:
Adam Eehan committed 2026-10-28 12:48:55 +05:30
1 parent 84c05da0c4
commit ddbe502d37
5 files changed
+88 -95

No files matched your search

+9 -16
View File
@@ -1,16 +1,9 @@
#!/usr/bin/env python3
import sys
import os
base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
src_dir = os.path.join(base_dir, "src")
if os.path.isdir(src_dir):
sys.path.insert(0, src_dir)
elif os.path.isdir("/data/data/com.termux/files/home/airalang/src"):
sys.path.insert(0, "/data/data/com.termux/files/home/airalang/src")
import cli
if __name__ == "__main__":
cli.main()
#!/bin/sh
# AiraLang Native Launch Script
DIR="$(cd "$(dirname "$0")/.." && pwd)"
if [ -x "$DIR/s1duo/bin/airalang" ]; then
exec "$DIR/s1duo/bin/airalang" "$@"
elif [ -x "/data/data/com.termux/files/usr/bin/airalang" ]; then
exec "/data/data/com.termux/files/usr/bin/airalang" "$@"
fi
exec python3 "$DIR/src/cli.py" "$@"