diff --git a/README.md b/README.md index f41ba8c..11f084b 100644 --- a/README.md +++ b/README.md @@ -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 (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 (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 * * * ``` diff --git a/build_revanced.sh b/build_revanced.sh index 3690f57..bd766d0 100755 --- a/build_revanced.sh +++ b/build_revanced.sh @@ -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"