mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-26 20:58:37 -06:00
Added optional support for a post install script
This commit is contained in:
parent
858103a191
commit
19ed213e0c
2 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,7 @@ Just run `./build_revanced <working-directory> (force/clean/experimental/checkon
|
||||||
- The script will download the **automatically selected compatible version** (using compatibility of patches as listed [here](https://github.com/revanced/revanced-patches#list-of-available-patches)) of Youtube on APKMirror, **NOT** latest official version on Google Play.
|
- The script will download the **automatically selected compatible version** (using compatibility of patches as listed [here](https://github.com/revanced/revanced-patches#list-of-available-patches)) 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.
|
- Under **NO CIRCUMSTANCES** any APKs will be uploaded to this repository to avoid DMCA.
|
||||||
- The script assumes that the working directory has the `telegram.sh` script along with a working config file and optionally `telegram-upload` installed and working with the channel link saved in a file called `channel_address`. For their config, look at the links provided on top.
|
- The script assumes that the working directory has the `telegram.sh` script along with a working config file and optionally `telegram-upload` installed and working with the channel link saved in a file called `channel_address`. For their config, look at the links provided on top.
|
||||||
|
- It can also run a post script (if exists) called `post_script.sh`. The `timestamp` would 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 commented out.
|
- 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 commented out.
|
||||||
- All the packages are pulled from [APKMirror](https://apkmirror.com) and GitHub (the `revanced/*` repos).
|
- All the packages are pulled from [APKMirror](https://apkmirror.com) and GitHub (the `revanced/*` repos).
|
||||||
|
|
||||||
|
|
|
@ -227,4 +227,7 @@ find ./archive -maxdepth 1 -type f -printf '%Ts\t%P\n' \
|
||||||
| xargs -r -I {} rm "./archive/{}"
|
| xargs -r -I {} rm "./archive/{}"
|
||||||
find ./logs -mtime +7 -exec rm {} \;
|
find ./logs -mtime +7 -exec rm {} \;
|
||||||
|
|
||||||
|
# Run a custom post script, if available
|
||||||
|
[ -f post_script.sh ] && ./post_script.sh $timestamp
|
||||||
|
|
||||||
echo "Done!"$'\n'"************************************"
|
echo "Done!"$'\n'"************************************"
|
Loading…
Reference in a new issue