fix issue and add init
This commit is contained in:
parent
22b2c94d5d
commit
ae035e3e4c
1 changed files with 16 additions and 7 deletions
23
Makefile
23
Makefile
|
@ -5,19 +5,22 @@ RVD_INT_EXT = apk
|
||||||
RVD_PATCHES = revanced-patches
|
RVD_PATCHES = revanced-patches
|
||||||
RVD_PATCHES_EXT = jar
|
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_REPO = revanced
|
||||||
GITHUB_ENDPOINT = releases/latest
|
GITHUB_ENDPOINT = releases/latest
|
||||||
|
|
||||||
EXTENSIONS = *.$(RVD_CLI_EXT) *.$(RVD_INT_EXT) *.$(RVD_PATCHES_EXT)
|
EXTENSIONS = *.$(RVD_CLI_EXT) *.$(RVD_INT_EXT) *.$(RVD_PATCHES_EXT)
|
||||||
VERSIONS_TXT = versions.txt
|
VERSIONS_TXT = versions.txt
|
||||||
|
|
||||||
WGET = wget -q --show-progress
|
WGET = wget -q --show-progress
|
||||||
CURL = curl -s
|
CURL = curl -s
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
MV = mv
|
MV = mv
|
||||||
LS = ls
|
LS = ls
|
||||||
ECHO = echo
|
ECHO = echo
|
||||||
|
UNZIP = unzip
|
||||||
|
|
||||||
GREP_DOWNLOADS = grep 'browser_'
|
GREP_DOWNLOADS = grep 'browser_'
|
||||||
GREP_LATEST = grep -v 'dev' | head -1
|
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)
|
$(MV) $(RVD_PATCHES)*.$(RVD_PATCHES_EXT) $(RVD_PATCHES).$(RVD_PATCHES_EXT)
|
||||||
@$(ECHO) Version file updated!
|
@$(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: clean
|
||||||
update: download_cli
|
update: download_cli
|
||||||
update: download_INT
|
update: download_INT
|
||||||
|
|
Loading…
Reference in a new issue