Build Any arch

This commit is contained in:
Nikhil Badyal
2022-10-19 15:59:44 +05:30
parent a5a77ffe11
commit 0d8b9e27ef
4 changed files with 13 additions and 12 deletions
+1 -1
View File
@@ -61,4 +61,4 @@ class RevancedConfig:
"BRANDING_PATCH",
"custom-branding-icon-blue" if self.build_extended else "custom-branding",
)
self.build_arm64_v8a_only = env.bool("BUILD_ARM64_V8A_ONLY", False)
self.archs_to_build = env.list("ARCHS_TO_BUILD", [])
+6 -7
View File
@@ -8,6 +8,7 @@ from loguru import logger
from src.config import RevancedConfig
from src.patches import Patches
from src.utils import possible_archs
class Parser(object):
@@ -103,13 +104,11 @@ class Parser(object):
if self._PATCHES:
args.extend(self._PATCHES)
if self.config.build_extended and self.config.build_arm64_v8a_only:
args.append("--rip-lib")
args.append("armeabi-v7a")
args.append("--rip-lib")
args.append("x86")
args.append("--rip-lib")
args.append("x86_64")
if self.config.build_extended and len(self.config.archs_to_build) > 0:
excluded = set(possible_archs) - set(self.config.archs_to_build)
for arch in excluded:
args.append("--rip-lib")
args.append(arch)
start = perf_counter()
process = Popen(["java", *args], stdout=PIPE)
+1
View File
@@ -8,3 +8,4 @@ supported_apps = [
"warnwetter",
"spotify",
]
possible_archs = ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]