mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
✨ Build Any arch
This commit is contained in:
@@ -235,7 +235,7 @@ By default, script build the version as recommended by Revanced team.
|
|||||||
fact to define your normal configurations in `.env` file and sometimes if you want to build something different just
|
fact to define your normal configurations in `.env` file and sometimes if you want to build something different just
|
||||||
once. Add it in `GitHub secrets` or you can ignore `.env` file and always use `GitHub secrets` because to modify
|
once. Add it in `GitHub secrets` or you can ignore `.env` file and always use `GitHub secrets` because to modify
|
||||||
`.env` you need to modify the repo. Edit it and make a commit.
|
`.env` you need to modify the repo. Edit it and make a commit.
|
||||||
11. If you want to build youtube with `original icon` and `custom branding icon` both. Add `BUILD_OG_BRANDING_YOUTUBE`
|
11. If you want to build YouTube with `original icon` and `custom branding icon` both. Add `BUILD_OG_BRANDING_YOUTUBE`
|
||||||
in `.env` file or in `ENVS` in `GitHub secrets` (Recommended) in the format
|
in `.env` file or in `ENVS` in `GitHub secrets` (Recommended) in the format
|
||||||
```dotenv
|
```dotenv
|
||||||
BUILD_OG_BRANDING_YOUTUBE=True
|
BUILD_OG_BRANDING_YOUTUBE=True
|
||||||
@@ -246,11 +246,12 @@ By default, script build the version as recommended by Revanced team.
|
|||||||
```dotenv
|
```dotenv
|
||||||
BRANDING_PATCH=custom-branding-icon-blue
|
BRANDING_PATCH=custom-branding-icon-blue
|
||||||
```
|
```
|
||||||
12. You can build only for `arm64-v8a` devices in order to get smaller apk files.This can be done with by adding
|
12. You can build only for a particular arch in order to get smaller apk files.This can be done with by adding comma
|
||||||
`BUILD_ARM64_V8A_ONLY` in `ENVS` in `GitHub secrets` (Recommended) in the format.
|
separated `ARCHS_TO_BUILD` in `ENVS` in `GitHub secrets` (Recommended) in the format.
|
||||||
```dotenv
|
```dotenv
|
||||||
BUILD_ARM64_V8A_ONLY=True
|
ARCHS_TO_BUILD=arm64-v8a,armeabi-v7a
|
||||||
```
|
```
|
||||||
|
Possible values for `ARCHS_TO_BUILD` are: `armeabi-v7a`,`x86`,`x86_64`,`arm64-v8a`
|
||||||
Make sure you are using `revanced-extended` as `revanced` doesn't support this.
|
Make sure you are using `revanced-extended` as `revanced` doesn't support this.
|
||||||
13. Sample Envs ![envs]
|
13. Sample Envs ![envs]
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -61,4 +61,4 @@ class RevancedConfig:
|
|||||||
"BRANDING_PATCH",
|
"BRANDING_PATCH",
|
||||||
"custom-branding-icon-blue" if self.build_extended else "custom-branding",
|
"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
@@ -8,6 +8,7 @@ from loguru import logger
|
|||||||
|
|
||||||
from src.config import RevancedConfig
|
from src.config import RevancedConfig
|
||||||
from src.patches import Patches
|
from src.patches import Patches
|
||||||
|
from src.utils import possible_archs
|
||||||
|
|
||||||
|
|
||||||
class Parser(object):
|
class Parser(object):
|
||||||
@@ -103,13 +104,11 @@ class Parser(object):
|
|||||||
|
|
||||||
if self._PATCHES:
|
if self._PATCHES:
|
||||||
args.extend(self._PATCHES)
|
args.extend(self._PATCHES)
|
||||||
if self.config.build_extended and self.config.build_arm64_v8a_only:
|
if self.config.build_extended and len(self.config.archs_to_build) > 0:
|
||||||
args.append("--rip-lib")
|
excluded = set(possible_archs) - set(self.config.archs_to_build)
|
||||||
args.append("armeabi-v7a")
|
for arch in excluded:
|
||||||
args.append("--rip-lib")
|
args.append("--rip-lib")
|
||||||
args.append("x86")
|
args.append(arch)
|
||||||
args.append("--rip-lib")
|
|
||||||
args.append("x86_64")
|
|
||||||
|
|
||||||
start = perf_counter()
|
start = perf_counter()
|
||||||
process = Popen(["java", *args], stdout=PIPE)
|
process = Popen(["java", *args], stdout=PIPE)
|
||||||
|
|||||||
@@ -8,3 +8,4 @@ supported_apps = [
|
|||||||
"warnwetter",
|
"warnwetter",
|
||||||
"spotify",
|
"spotify",
|
||||||
]
|
]
|
||||||
|
possible_archs = ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
|
||||||
|
|||||||
Reference in New Issue
Block a user