Skip to content

Instantly share code, notes, and snippets.

@nicman23
Created September 28, 2022 09:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicman23/53ea662ce27f80503d330618d1d8a526 to your computer and use it in GitHub Desktop.
Save nicman23/53ea662ce27f80503d330618d1d8a526 to your computer and use it in GitHub Desktop.
revanced build
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