Merge pull request #53 from nikhilbadyal/rip-lib

Rip lib
This commit is contained in:
Nikhil Badyal
2022-10-18 23:13:52 +05:30
committed by GitHub
5 changed files with 24 additions and 3 deletions
+7 -1
View File
@@ -8,6 +8,11 @@ on:
secrets: secrets:
ENVS: ENVS:
required: false required: false
inputs:
FILES_TO_EXPECT:
type: string
required: false
default: -1
jobs: jobs:
build-apk: build-apk:
@@ -28,10 +33,11 @@ jobs:
docker-compose up docker-compose up
- name: Upload Build APKS - name: Upload Build APKS
uses: actions/upload-artifact@v3.1.0 uses: nikhilbadyal/upload-artifact@count-check
with: with:
name: Built-APKs name: Built-APKs
path: | path: |
apks/*-output.apk apks/*-output.apk
apks/VancedMicroG.apk" apks/VancedMicroG.apk"
if-no-files-found: error if-no-files-found: error
files-to-expect: ${{ inputs.FILES_TO_EXPECT }}
+2
View File
@@ -14,6 +14,8 @@ jobs:
PYTHON_VERSION: '3.10' PYTHON_VERSION: '3.10'
build-apk-pr-check: build-apk-pr-check:
uses: ./.github/workflows/build-artifact.yml uses: ./.github/workflows/build-artifact.yml
with:
FILES_TO_EXPECT: 2
secrets: secrets:
ENVS: | ENVS: |
PATCH_APPS=youtube PATCH_APPS=youtube
+7 -2
View File
@@ -249,8 +249,13 @@ 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. Sample Envs ![envs] `BUILD_ARM64_V8A_ONLY` in `ENVS` in `GitHub secrets` (Recommended) in the format.
```dotenv
BUILD_ARM64_V8A_ONLY=True
```
Make sure you are using `revanced-extended` as `revanced` doesn't support this.
13. Sample Envs ![envs]
### Generate Token ### Generate Token
1. Go to your account developer [settings](https://github.com/settings/tokens). Click on generate new token.<br> 1. Go to your account developer [settings](https://github.com/settings/tokens). Click on generate new token.<br>
+1
View File
@@ -61,3 +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)
+7
View File
@@ -103,6 +103,13 @@ 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:
args.append("--rip-lib")
args.append("armeabi-v7a")
args.append("--rip-lib")
args.append("x86")
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)