mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2024-12-26 12:48:36 -06:00
new: Added a buildonly argument
This commit is contained in:
parent
481e42d32c
commit
c5a0b9a104
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
This repo will allow one to build [ReVanced](https://github.com/revanced/) apps automatically and post it to a telegram channel to access and possibly share the builds with friends. It uses [Gotify](https://gotify.net), [ntfy.sh](https://ntfy.sh) or [telegram.sh](https://github.com/fabianonline/telegram.sh) to send messages and [telegram-upload](https://github.com/Nekmo/telegram-upload) to upload files (optionally, disabled out by default). Make sure that `Java >=17` is installed and selected as default.
|
This repo will allow one to build [ReVanced](https://github.com/revanced/) apps automatically and post it to a telegram channel to access and possibly share the builds with friends. It uses [Gotify](https://gotify.net), [ntfy.sh](https://ntfy.sh) or [telegram.sh](https://github.com/fabianonline/telegram.sh) to send messages and [telegram-upload](https://github.com/Nekmo/telegram-upload) to upload files (optionally, disabled out by default). Make sure that `Java >=17` is installed and selected as default.
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
Just run `./build_revanced <working-directory> (force/clean/experimental/checkonly)`. 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:
|
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>
|
0 6 * * * <full-script-location> <full-working-directory-location>
|
||||||
```
|
```
|
||||||
|
|
|
@ -145,7 +145,7 @@ if [[ $flag == false && $2 != force ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Download required apk files
|
# Download required apk files
|
||||||
"$SDIR/download_apkmirror.sh" "$WDIR" $2
|
[[ $2 != buildonly ]] && "$SDIR/download_apkmirror.sh" "$WDIR"
|
||||||
|
|
||||||
# If the variables are NOT empty, call populate_patches with proper arguments
|
# If the variables are NOT empty, call populate_patches with proper arguments
|
||||||
[[ ! -z "$excluded_patches" ]] && populate_patches "-e" "$excluded_patches"
|
[[ ! -z "$excluded_patches" ]] && populate_patches "-e" "$excluded_patches"
|
||||||
|
|
Loading…
Reference in a new issue