初步termux支持

This commit is contained in:
2024-07-20 22:24:39 +08:00
parent 3146467477
commit 60f838144d
19 changed files with 393 additions and 14 deletions

View File

@@ -208,6 +208,8 @@ class GetInfo():
is32kPageSize = (pageSize == "32384")
is64kPageSize = (pageSize == "64768")
isLoongarch = (arch == "loong64") or (arch == "loongarch64")
isProot = os.path.exists("/storage")
isAndroid = os.path.exists("/data")
glibcVersion = "2.28"
def __init__(self):
@@ -315,6 +317,10 @@ class GetInfo():
result = True
if (data == "loong64-kernel-64k-pagesize" and self.isLoongarch and self.is64kPageSize):
result = True
if (data == "proot" and self.isProot):
result = True
if (data == "android" and self.isAndroid):
result = True
if (self.compareVersion(self.glibcVersion, data) == 1):
result = True
if (os.path.exists(data)):