Added ability for custom version revanced

This commit is contained in:
Nikhil Badyal
2022-08-13 18:04:00 +05:30
parent 09d4879c2c
commit fa27621921
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -29,6 +29,10 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Update Env for custom build
run: |
echo ${{ secrets.ENVS }} >> .env
- name: Build APK
run: |
docker-compose up
+4
View File
@@ -1,3 +1,4 @@
import os
import subprocess
import sys
from atexit import register
@@ -288,6 +289,9 @@ def main() -> None:
arg_parser = ArgParser
logger.debug("Trying to build %s" % app)
app_patches, version = patches.get(app=app)
if os.getenv(f"{app}_VERSION".upper()):
print("here")
version = os.getenv(f"{app}_VERSION".upper())
if app == "reddit" or app == "twitter":
downloader.apkmirror_reddit_twitter(app, version)
else: