From fb50543f59425a672fc34b3e234cd703003c6fcf Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Wed, 26 Oct 2022 00:13:26 -0500 Subject: [PATCH] Move chosen patches file to working directory --- PATCHES_GUIDE.md | 2 +- build_revanced.sh | 6 +++--- patches.txt => chosen_patches.txt | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename patches.txt => chosen_patches.txt (100%) diff --git a/PATCHES_GUIDE.md b/PATCHES_GUIDE.md index 50f0090..1fabc8a 100644 --- a/PATCHES_GUIDE.md +++ b/PATCHES_GUIDE.md @@ -2,7 +2,7 @@ **Please read the following information before beginning.** -By default the script will build ReVanced with ALL default* patches. Edit `patches.txt` to customize your build of ReVanced. +By default the script will build ReVanced with ALL default* patches. Copy `chosen_patches.txt` inside your provided working directory and edit it to customize your build of ReVanced. *Default: All patches except those which have to be ***included*** explicitly, i.e, using the `-i` flag while manually using the ReVanced CLI diff --git a/build_revanced.sh b/build_revanced.sh index 7d29672..81d1b85 100755 --- a/build_revanced.sh +++ b/build_revanced.sh @@ -10,9 +10,6 @@ log_file="$1/logs/$(date '+%s')" # Get timestamp timestamp=$(date '+%s') -# File containing all patches -patch_file="./patches.txt" - # Set working directory and current directory if [ -d "$1" ]; then WDIR="$1" @@ -21,6 +18,9 @@ else exit -1 fi +# File containing all patches +patch_file="$WDIR./chosen_patches.txt" + # Returns if $1 is less than $2 ver_less_than() { [ ${1:0:1} == "v" ] && var1=${1:1} || var1=$1 diff --git a/patches.txt b/chosen_patches.txt similarity index 100% rename from patches.txt rename to chosen_patches.txt