fix issue and add init

This commit is contained in:
Mylloon 2023-05-01 20:36:54 +02:00
parent 22b2c94d5d
commit ae035e3e4c
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -5,7 +5,9 @@ RVD_INT_EXT = apk
RVD_PATCHES = revanced-patches
RVD_PATCHES_EXT = jar
GITHUB_URL = https://api.github.com/repos/
ADB_ARCHIVE = platform-tools-latest-linux.zip
GITHUB_URL = https://api.github.com/repos
GITHUB_REPO = revanced
GITHUB_ENDPOINT = releases/latest
@ -18,6 +20,7 @@ RM = rm -f
MV = mv
LS = ls
ECHO = echo
UNZIP = unzip
GREP_DOWNLOADS = grep 'browser_'
GREP_LATEST = grep -v 'dev' | head -1
@ -32,6 +35,12 @@ update_version_file:
$(MV) $(RVD_PATCHES)*.$(RVD_PATCHES_EXT) $(RVD_PATCHES).$(RVD_PATCHES_EXT)
@$(ECHO) Version file updated!
init: update
init:
@$(WGET) https://dl.google.com/android/repository/$(ADB_ARCHIVE)
@$(UNZIP) $(ADB_ARCHIVE)
@$(RM) $(ADB_ARCHIVE)
update: clean
update: download_cli
update: download_INT