new: Added a buildonly argument

This commit is contained in:
Sayantan Santra 2023-07-01 22:50:16 -05:00
parent 481e42d32c
commit c5a0b9a104
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F
2 changed files with 2 additions and 2 deletions

View file

@ -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.
## 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>
```

View file

@ -145,7 +145,7 @@ if [[ $flag == false && $2 != force ]]; then
fi
# 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
[[ ! -z "$excluded_patches" ]] && populate_patches "-e" "$excluded_patches"