Giter Site home page Giter Site logo

diethard / docker-py-revanced Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nikhilbadyal/docker-py-revanced

0.0 0.0 0.0 110 KB

One Click Python util to build all Revanced apps

License: GNU General Public License v3.0

Shell 2.26% Python 88.40% Dockerfile 9.34%

docker-py-revanced's Introduction

Docker-Py-ReVanced

A little python script that will help you in building Revanced apps.

Build

You can use any of the following methods to build.

🚀In GitHub(Recommended)
  1. Fork the project. image

  2. Add following secrets to the repo.

    1. GH_TOKEN (required) - GitHub token so that it can upload to GitHub after building. Click here to learn how to get that..
    2. VT_API_KEY (optional) - required only if you want Virus total scan.
    3. ENVS (optional) - required only if you want to cook specific apps/versions.
    🚶Detailed step by step guide
    • Go to the repo settings and then to actions->secret step_1

    • Add Repository secret step_2

    • GitHub Secrets might look like this(With VT_SCAN) secrets

    • After adding secrets, ENVS secret might look like this

      PATCH_APPS=youtube_music,twitter
      EXCLUDE_PATCH_YOUTUBE=custom-branding
      EXCLUDE_PATCH_YOUTUBE_MUSIC=yt-music-is-shit
      YOUTUBE_VERSION=67.68.69
      YOUTUBE_MUSIC_VERSION=latest
      TWITTER_VERSION=0.2.2
      REDDIT_VERSION=latest
      TIKTOK_VERSION=latest
      WARNWETTER_VERSION=latest
  3. Go to actions tab. Select Build Revanced APK.Click on Run Workflow.

    1. It can take a few minute to start. Just be patient.
    🚶Detailed step by step guide
    • Go to actions tab action_0
    • Check the status of build, It should look green. action_1
    • Check if logs if something fails. action_2 action_3
  4. If the building process is successful, you’ll get your APKs in the releases

    • apks
  5. Click on Build-<SomeRandomDate> and download the apk file.

🐳With Docker
  1. Install Docker
  2. Run script with
    docker-compose up
🫠Without Docker
  1. Install Java17 (zulu preferred)
  2. Install Python
  3. Create virtual environment
    python3 -m venv venv
    
  4. Activate virtual environment
    source venv/bin/activate
    
  5. Install Dependencies with
    pip install -r requirements.txt
    
  6. Run the script with
    python python main.py
    

Note

By default, script build the version as recommended by Revanced team.

  1. Supported values for <REVANCED_APPS_NAME> are :
    1. youtube
    2. youtube_music
    3. twitter
    4. reddit
    5. tiktok
    6. warnwetter
  2. If you want to build a specific version . Add version in environment in the format
    <APPNAME>_VERSION=<VERSION>
    Example:
    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
  3. If you want to build latest version, whatever latest is available(including beta) . Add latest in environment in the format
    <APPNAME>_VERSION=latest
    Example:
    YOUTUBE_VERSION=latest
    YOUTUBE_MUSIC_VERSION=latest
    TWITTER_VERSION=latest
    REDDIT_VERSION=latest
    TIKTOK_VERSION=latest
    WARNWETTER_VERSION=latest
  4. 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 environment in the format
    PATCH_APPS=<REVANCED_APPS_NAME>
    Example:
    PATCH_APPS=youtube,twitter,reddit
  5. If you don't want to use default keystore. You can provide your own by placing it inside apks folder. And adding the name of keystore-file in environment like
     KEYSTORE_FILE_NAME=revanced.keystore
  6. If you want to exclude any patch. Set comma separated patch in environment in the format
    EXCLUDE_PATCH_<REVANCED_APPS_NAME>=<PATCH_TO_EXCLUDE-1,PATCH_TO_EXCLUDE-2>
    Example:
     EXCLUDE_PATCH_YOUTUBE=custom-branding,hide-get-premium
     EXCLUDE_PATCH_YOUTUBE_MUSIC=yt-music-is-shit
  7. Remember to download the Microg. Otherwise you will not be able to open youtube.

Generate Token

  1. Go to your account developer settings. Click on generate new token. token 1
  2. Give a nice name. and grant following permissions token 2

Thanks to @aliharslan0 for his work.

docker-py-revanced's People

Contributors

nikhilbadyal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.