A script to automatically build latest releases of ReVanced apps
Find a file
2023-07-28 11:55:30 -05:00
.gitignore Initial commit 2022-10-09 17:37:34 -05:00
build_revanced.sh chg: Switched to APKPure 2023-07-28 11:55:30 -05:00
build_settings new: Added support for ntfy.sh 2023-06-23 19:51:02 -05:00
chosen_patches.txt Move chosen patches file to working directory 2022-10-26 00:13:26 -05:00
download_apk.sh chg: Switched to APKPure 2023-07-28 11:55:30 -05:00
LICENSE Updated LICENSE 2023-04-10 20:06:57 -05:00
PATCHES_GUIDE.md Move chosen patches file to working directory 2022-10-26 00:13:26 -05:00
README.md new: Added a buildonly argument 2023-07-01 22:50:16 -05:00

Revanced Builder

This repo will allow one to build ReVanced apps automatically and post it to a telegram channel to access and possibly share the builds with friends. It uses Gotify, ntfy.sh or telegram.sh to send messages and telegram-upload to upload files (optionally, disabled out by default). Make sure that Java >=17 is installed and selected as default.

How to use

Just run ./build_revanced <working-directory> (force/clean/experimental/checkonly/buildonly). Might be a good idea to set it up to run periodically using cron. I currently use the following in a user crontab to run it everyday at 6 AM:

0 6 * * * <full-script-location> <full-working-directory-location>

Notes

  • To enable build for a particular apk, copy the build_settings file to your working directory and modify it to suit your needs.
  • The script will download the automatically selected compatible version (using compatibility of patches as listed here) of Youtube on APKMirror, NOT latest official version on Google Play.
  • Under NO CIRCUMSTANCES any APKs will be uploaded to this repository to avoid DMCA.
  • If you enable the Gotify, ntfy or telegram notifications or uploads, make sure to fill up the config options inside the build_settings file. For more information about the config, take at look at the repos of telegram.sh and telegram-upload provided above.
  • It can also run a post script (if exists) called post_script.sh. The timestamp is passed as $1.
  • In the current configuration, the script only builds YouTube ReVanced and YouTube Music ReVanced (both nonroot), but it's easy to add support for any other ReVanced app. The code for root builds is included but disabled by default.
  • All the packages are pulled from APKMirror and GitHub (the revanced/* repos).

Customize your build

If you wish to continue with the default settings, you may skip this step.

By default this will build ReVanced with ALL available patches. Follow this guide to exclude/customizing patches for your build.