A little python script that will help you in building Revanced apps directly from GitHub. This fork support Youtube, Youtube Music, twitter, reddit, tiktok and WARNWETTER. The original script documentation is not as detailed as this one for newbies. So read the following. This fork has cleaned some unuseful actions like post to telegram and check APK with Virus Total api.
-
Add following repository secrets
- GH_TOKEN (required) - GitHub token so that it can upload to GitHub and create release after building. See how to generate token here.
- ENVS (optional but I recommand to custom as below) - required only if you want to cook specific apps/versions.
🛈 How to
-
ENVSsecret might look like this (You should copy yourENVScontent somewhere before saving because secret var can not be edited or copied after. You’ll have to click update to recreate from blank if you want change yourENVSsettings.)PATCH_APPS=youtube,twitter EXCLUDE_PATCH_YOUTUBE=hide-cast-button,hide-autoplay-button,premium-heading,disable-fullscreen-panels,old-quality-layout,tablet-mini-player,always-autorepeat,enable-debugging,hide-infocard-suggestions EXCLUDE_PATCH_YOUTUBE_MUSIC=yt-music-is-shit YOUTUBE_VERSION=17.32.39 YOUTUBE_MUSIC_VERSION=latest TWITTER_VERSION=latest
-
Go to actions tab. Select
Build Revanced APK. Click onRun Workflow.- It can take a few minute to start. Just be patient.
-
If the building process is successful, you’ll get your APKs in the releases
By default, script builds the version as recommended by Revanced team.
- Supported values for <REVANCED_APPS_NAME> are :
- youtube
- youtube_music
- tiktok
- warnwetter
- If you want to build a specific version . Add
versioninenvironmentin the formatExample:<APPNAME>_VERSION=<VERSION>Check available versions on APKMirror.YOUTUBE_VERSION=17.31.36 YOUTUBE_MUSIC_VERSION=X.X.X TWITTER_VERSION=X.X.X REDDIT_VERSION=X.X.X TIKTOK_VERSION=X.X.X WARNWETTER_VERSION=X.X.X
- If you want to a
latestversion, whatever latest is available (including beta) . Addlatestinenvironmentin the formatExample:<APPNAME>_VERSION=latestYOUTUBE_VERSION=latest YOUTUBE_MUSIC_VERSION=latest TWITTER_VERSION=latest REDDIT_VERSION=latest TIKTOK_VERSION=latest WARNWETTER_VERSION=latest
- By default, it will build all build app supported by Revanced team. If you
don't
want to waste time and build only few apps. Add the apps you want to build in
environmentin the formatExample:PATCH_APPS=<REVANCED_APPS_NAME>PATCH_APPS=youtube,twitter - If you don't want to use default keystore. You can provide your own by placing it
inside
apksfolder. And adding the name ofkeystore-fileinenvironmentlikeKEYSTORE_FILE_NAME=revanced.keystore - If you want to exclude any patch. Set comma separated patch in
environmentin the formatExample:EXCLUDE_PATCH_<REVANCED_APPS_NAME>=<PATCH_TO_EXCLUDE-1,PATCH_TO_EXCLUDE-2>
Patches list available for all supported apps are here.EXCLUDE_PATCH_YOUTUBE=custom-branding,hide-get-premium EXCLUDE_PATCH_YOUTUBE_MUSIC=yt-music-is-shit
- By default, the
--experimentalflag is used to allow patching new but untested apps releases. There is two ways to force the script only patches the apps releases supported and tested by ReVanced.- Create a new
ENVSand use<APPNAME>_VERSION=<VERSION> - Edit the
main.pyfile line 376 to changeis_experimental = Truetois_experimental = False
- Create a new
- Go to your account setting → developper settings (at the bottom of the page)
- Give it a meaningful name

- Grant those permissions and valid

Thanks to @aliharslan0 for his work.






