Created
September 28, 2022 09:38
-
-
Save nicman23/53ea662ce27f80503d330618d1d8a526 to your computer and use it in GitHub Desktop.
revanced build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git_release() { | |
curl -sL https://github.com/${repo}/releases/ | | |
xmllint -html -xpath '//a[contains(@href, "releases")]/text()' - 2> /dev/null | | |
grep -P '^v' | head -n1 | |
} | |
git_download() { | |
repo=${1} | |
file=${2} | |
version=$(git_release) | |
file=$(eval echo $file) | |
curl -sL https://github.com/${repo}/releases/download/${version}/${file} -o ${file} | |
} | |
rm *jar app-release-unsigned.apk revanced-* &> /dev/null | |
git_download revanced/revanced-integrations app-release-unsigned.apk | |
git_download revanced/revanced-cli 'revanced-cli-${version:1}-all.jar' | |
git_download revanced/revanced-patches 'revanced-patches-${version:1}.jar' | |
java -jar revanced-cli-*.jar -c -m app-release-unsigned.apk \ | |
-o revanced-output.apk -a youtube.apk \ | |
-b revanced-patches-*.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment