mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
Merge pull request #46 from nikhilbadyal/version-updates
👷 Version Bump
This commit is contained in:
@@ -12,22 +12,22 @@ jobs:
|
|||||||
build-apk:
|
build-apk:
|
||||||
name: APK Build
|
name: APK Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 15
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out Git repository
|
- name: Check out Git repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3.1.0
|
||||||
|
|
||||||
- name: Update Env for custom build
|
- name: Update Env for custom build
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.ENVS }}" >> .env
|
echo "${{ secrets.ENVS }}" > .env
|
||||||
|
|
||||||
- name: Build Revanced APKs
|
- name: Build Revanced APKs
|
||||||
run: |
|
run: |
|
||||||
docker-compose up
|
docker-compose up
|
||||||
|
|
||||||
- name: Upload Build APKS
|
- name: Upload Build APKS
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3.1.0
|
||||||
with:
|
with:
|
||||||
name: Built-APKs
|
name: Built-APKs
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3.1.0
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v2
|
uses: github/codeql-action/init@v2
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3.1.0
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4.3.0
|
uses: actions/setup-python@v4.3.0
|
||||||
|
|||||||
@@ -12,3 +12,5 @@ jobs:
|
|||||||
uses: ./.github/workflows/linter.yml
|
uses: ./.github/workflows/linter.yml
|
||||||
build-apk-pr-check:
|
build-apk-pr-check:
|
||||||
uses: ./.github/workflows/build-artifact.yml
|
uses: ./.github/workflows/build-artifact.yml
|
||||||
|
secrets:
|
||||||
|
ENVS: ""
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3.1.0
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4.3.0
|
uses: actions/setup-python@v4.3.0
|
||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
run: pre-commit autoupdate
|
run: pre-commit autoupdate
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v4
|
uses: peter-evans/create-pull-request@v4.1.3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
token: ${{ secrets.GH_TOKEN }}
|
||||||
branch: update/pre-commit-autoupdate
|
branch: update/pre-commit-autoupdate
|
||||||
|
|||||||
+5
-2
@@ -18,7 +18,7 @@ class Downloader(object):
|
|||||||
"""Files downloader."""
|
"""Files downloader."""
|
||||||
|
|
||||||
def __init__(self, config: RevancedConfig):
|
def __init__(self, config: RevancedConfig):
|
||||||
self._CHUNK_SIZE = 2**21 * 5
|
self._CHUNK_SIZE = 10485760
|
||||||
self._QUEUE: PriorityQueue[Tuple[float, str]] = PriorityQueue()
|
self._QUEUE: PriorityQueue[Tuple[float, str]] = PriorityQueue()
|
||||||
self._QUEUE_LENGTH = 0
|
self._QUEUE_LENGTH = 0
|
||||||
self.config = config
|
self.config = config
|
||||||
@@ -168,7 +168,6 @@ class Downloader(object):
|
|||||||
["revanced", "revanced-cli", self.config.normal_cli_jar],
|
["revanced", "revanced-cli", self.config.normal_cli_jar],
|
||||||
["revanced", "revanced-integrations", self.config.normal_integrations_apk],
|
["revanced", "revanced-integrations", self.config.normal_integrations_apk],
|
||||||
["revanced", "revanced-patches", self.config.normal_patches_jar],
|
["revanced", "revanced-patches", self.config.normal_patches_jar],
|
||||||
["inotia00", "VancedMicroG", "VancedMicroG-output.apk"],
|
|
||||||
]
|
]
|
||||||
if self.config.build_extended:
|
if self.config.build_extended:
|
||||||
assets += [
|
assets += [
|
||||||
@@ -176,6 +175,10 @@ class Downloader(object):
|
|||||||
["inotia00", "revanced-integrations", self.config.integrations_apk],
|
["inotia00", "revanced-integrations", self.config.integrations_apk],
|
||||||
["inotia00", "revanced-patches", self.config.patches_jar],
|
["inotia00", "revanced-patches", self.config.patches_jar],
|
||||||
]
|
]
|
||||||
|
if "youtube" in self.config.apps or "youtube_music" in self.config.apps:
|
||||||
|
assets += [
|
||||||
|
["inotia00", "VancedMicroG", "VancedMicroG-output.apk"],
|
||||||
|
]
|
||||||
with ThreadPoolExecutor(7) as executor:
|
with ThreadPoolExecutor(7) as executor:
|
||||||
executor.map(lambda repo: self.repository(*repo), assets)
|
executor.map(lambda repo: self.repository(*repo), assets)
|
||||||
logger.info("Downloaded revanced microG ,cli, integrations and patches.")
|
logger.info("Downloaded revanced microG ,cli, integrations and patches.")
|
||||||
|
|||||||
Reference in New Issue
Block a user