📝 Updated Docs

This commit is contained in:
Nikhil Badyal
2022-10-13 23:33:16 +05:30
parent 8eed35a59a
commit 2ccf46a8de
4 changed files with 84 additions and 89 deletions
-5
View File
@@ -1,5 +0,0 @@
PATCH_APPS=youtube,twitter,reddit,youtube_music
BUILD_EXTENDED=True
EXCLUDE_PATCH_YOUTUBE=custom-branding,enable-debugging
EXCLUDE_PATCH_YOUTUBE_EXTENDED=custom-branding-red,custom-branding-blue,materialyou
EXCLUDE_PATCH_YOUTUBE_MUSIC_EXTENDED=custom-branding-music
+1 -1
View File
@@ -20,7 +20,7 @@ jobs:
- name: Update Env for custom build - name: Update Env for custom build
run: | run: |
echo "${{ secrets.ENVS }}" > .env echo "${{ secrets.ENVS }}" >> .env
- name: Build Revanced APKs - name: Build Revanced APKs
run: | run: |
+2 -1
View File
@@ -13,4 +13,5 @@ jobs:
build-apk-pr-check: build-apk-pr-check:
uses: ./.github/workflows/build-artifact.yml uses: ./.github/workflows/build-artifact.yml
secrets: secrets:
ENVS: "" ENVS: |
PATCH_APPS=youtube
+81 -82
View File
@@ -6,68 +6,51 @@ Note - I prefer [Revanced Extended](https://github.com/inotia00/revanced-patches
(for YouTube & YouTube Music) hence the YouTube and YouTube Music builds in this repo are from (for YouTube & YouTube Music) hence the YouTube and YouTube Music builds in this repo are from
Revanced Extended. Revanced Extended.
## Pre-Build APKs ## Pre-Built APKs
You can get pre-build apks [here](https://t.me/revanced_apkss) You can get pre-built apks [here](https://t.me/revanced_apkss)
## Build Yourself ## Build Yourself
You can use any of the following methods to build. You can use any of the following methods to build.
<details> - 🚀In GitHub (**_`Recommended`_**)
<summary>🚀In GitHub(Recommended)</summary> 1. Fork the project.
![image](https://user-images.githubusercontent.com/22337329/186554644-7d4c2172-c0dd-4ea6-9ec1-08e9b567a5e3.png)
2. Add following secrets to the repo.
1. _GH_TOKEN_ (**required**) - GitHub token so that it can upload to GitHub
after building. Click [here](#generate-token) 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.
<details>
<summary>🚶Detailed step by step guide</summary>
1. Fork the project. - Go to the repo settings and then to actions->secret
![image](https://user-images.githubusercontent.com/22337329/186554644-7d4c2172-c0dd-4ea6-9ec1-08e9b567a5e3.png) ![step_1]
2. Add following secrets to the repo. - Add Repository secret
1. _GH_TOKEN_ (**required**) - GitHub token so that it can upload to GitHub ![step_2]
after building. Click [here](#generate-token) 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.
<details>
<summary>🚶Detailed step by step guide</summary>
- Go to the repo settings and then to actions->secret </details>
![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 3. Go to actions tab. Select `Build Revanced APK`.Click on `Run Workflow`.
```ini 1. It can take a few minute to start. Just be patient.
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
```
</details> <details>
<summary>🚶Detailed step by step guide</summary>
3. Go to actions tab. Select `Build Revanced APK`.Click on `Run Workflow`. - Go to actions tab
1. It can take a few minute to start. Just be patient. ![action_0]
- Check the status of build, It should look green.
![action_1]
- Check logs if something fails.
![action_2]
![action_3]
<details> </details>
<summary>🚶Detailed step by step guide</summary>
- Go to actions tab 4. If the building process is successful, youll get your APKs in the releases
![action_0] - ![apks]
- Check the status of build, It should look green. 5. Click on **`Build-<SomeRandomDate>`** and download the apk file.
![action_1]
- Check logs if something fails.
![action_2]
![action_3]
</details>
4. If the building process is successful, youll get your APKs in the releases
- ![apks]
5. Click on **`Build-<SomeRandomDate>`** and download the apk file.
</details>
<details> <details>
<summary>🐳With Docker</summary> <summary>🐳With Docker</summary>
@@ -104,7 +87,7 @@ You can use any of the following methods to build.
</details> </details>
### Note ### Note (Pay attention to 3,4)
By default, script build the version as recommended by Revanced team. By default, script build the version as recommended by Revanced team.
@@ -116,8 +99,38 @@ By default, script build the version as recommended by Revanced team.
5. tiktok 5. tiktok
6. warnwetter 6. warnwetter
7. spotify 7. spotify
2. If you want to build a specific version . Add `version` in `environment` in the
format 2. Remember to download the **_Microg_**. Otherwise, you will not be able to open YouTube.
3. By default, it will build [all](#note) 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 `.env` file or in `ENVS` in
`GitHub secrets` in the format
```ini
PATCH_APPS=<REVANCED_APPS_NAME>
```
Example:
```ini
PATCH_APPS=youtube,twitter,reddit
```
4. If you want to exclude any patch. Set comma separated patch in `.env` file or in `ENVS` in `GitHub secrets`
(Recommended) in
the format
```ini
EXCLUDE_PATCH_<REVANCED_APPS_NAME>=<PATCH_TO_EXCLUDE-1,PATCH_TO_EXCLUDE-2>
```
Example:
```dotenv
EXCLUDE_PATCH_YOUTUBE=custom-branding,hide-get-premium
EXCLUDE_PATCH_YOUTUBE_MUSIC=yt-music-is-shit
```
If you are using `Revanced Extended.` Add `_EXTENDED` in exclude options.
Example:
```dotenv
EXCLUDE_PATCH_YOUTUBE_EXTENDED=custom-branding-red,custom-branding-blue,materialyou
EXCLUDE_PATCH_YOUTUBE_MUSIC_EXTENDED=custom-branding-music
```
5. If you want to build a specific version . Add `version` in `.env` file or in `ENVS` in `GitHub secrets` (Recommended)
in the format
```ini ```ini
<APPNAME>_VERSION=<VERSION> <APPNAME>_VERSION=<VERSION>
``` ```
@@ -131,9 +144,9 @@ By default, script build the version as recommended by Revanced team.
WARNWETTER_VERSION=X.X.X WARNWETTER_VERSION=X.X.X
SPOTIFY_VERSION=X.X.X SPOTIFY_VERSION=X.X.X
``` ```
3. If you want to build `latest` version, whatever latest is available(including 6. If you want to build `latest` version, whatever latest is available(including
beta) . beta) .
Add `latest` in `environment` in the format Add `latest` in `.env` file or in `ENVS` in `GitHub secrets` (Recommended) in the format
```ini ```ini
<APPNAME>_VERSION=latest <APPNAME>_VERSION=latest
``` ```
@@ -147,39 +160,19 @@ By default, script build the version as recommended by Revanced team.
WARNWETTER_VERSION=latest WARNWETTER_VERSION=latest
SPOTIFY_VERSION=latest SPOTIFY_VERSION=latest
``` ```
4. By default, it will build [all](#note) build app supported by Revanced team. If you
don't 7. If you don't want to use default keystore. You can provide your own by placing it
want to waste time and build only few apps. Add the apps you want to build in inside `apks` folder. And adding the name of `keystore-file` in `.env` file or in `ENVS` in `GitHub secrets`
`environment` in the format (Recommended) in the format
```ini
PATCH_APPS=<REVANCED_APPS_NAME>
```
Example:
```ini
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
```dotenv ```dotenv
KEYSTORE_FILE_NAME=revanced.keystore KEYSTORE_FILE_NAME=revanced.keystore
``` ```
6. If you want to exclude any patch. Set comma separated patch in `environment` in 8. If you want to use Revanced-Extended for YouTube and YouTube Music. Add the following adding
the format in `.env` file or in `ENVS` in `GitHub secrets` (Recommended) in the format
```ini
EXCLUDE_PATCH_<REVANCED_APPS_NAME>=<PATCH_TO_EXCLUDE-1,PATCH_TO_EXCLUDE-2>
```
Example:
```dotenv ```dotenv
EXCLUDE_PATCH_YOUTUBE=custom-branding,hide-get-premium BUILD_EXTENDED=True
EXCLUDE_PATCH_YOUTUBE_MUSIC=yt-music-is-shit
``` ```
7. Remember to download the **_Microg_**. Otherwise, you will not be able to open YouTube. or disable it with (default)
8. If you want to disable use Revanced-Extended for YouTube and YouTube Music. Add the following adding
in `environment` like
```dotenv
BUILD_EXTENDED=False
```
or enable it with
```dotenv ```dotenv
BUILD_EXTENDED=True BUILD_EXTENDED=True
``` ```
@@ -197,6 +190,11 @@ By default, script build the version as recommended by Revanced team.
![tg api hash] ![tg api hash]
6. After Everything done successfully the actions secrets of the repository will look something like<br> 6. After Everything done successfully the actions secrets of the repository will look something like<br>
<img src="https://i.imgur.com/dzC1KFa.png" width="400"> <img src="https://i.imgur.com/dzC1KFa.png" width="400">
10. Configuration defined in `ENVS` in `GitHub secrets` will override the configuration in `.env` file. You can use this
fact to define your normal configurations in `.env` file and sometimes if you want to build something different just
once. Add it in `GitHub secrets` or you can ignore `.env` file and always use `GitHub secrets` because to modify
`.env` you need to modify the repo. Edit it and make a commit.
11. Sample Envs ![envs]
### Generate Token ### Generate Token
1. Go to your account developer [settings](https://github.com/settings/tokens). Click on generate new token.<br> 1. Go to your account developer [settings](https://github.com/settings/tokens). Click on generate new token.<br>
@@ -216,5 +214,6 @@ By default, script build the version as recommended by Revanced team.
[bot api]: https://i.imgur.com/A6JCyK2.png [bot api]: https://i.imgur.com/A6JCyK2.png
[tg api]: https://i.imgur.com/eha3nnb.png [tg api]: https://i.imgur.com/eha3nnb.png
[tg api hash]: https://i.imgur.com/7n5k1mp.png [tg api hash]: https://i.imgur.com/7n5k1mp.png
[envs]: https://i.imgur.com/ajSE5nA.png
Thanks to [@aliharslan0](https://github.com/aliharslan0/pyrevanced) for his work. Thanks to [@aliharslan0](https://github.com/aliharslan0/pyrevanced) for his work.