mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 16:17:40 +00:00
support cli v5 options
Revanced CLI version 5 no longer use options.json anymore use directly `Revanced-And-Revanced-Extended-Non-Root/src/patches/` instead. The options separate with patches name with `|` Example Youtube apps include patches: `Custom branding|-OappName="YouTube ReVanced" -OiconPath=ReVanced*Logo`
This commit is contained in:
@@ -99,9 +99,14 @@ get_patches_key() {
|
||||
excludePatches+=" -d \"$line1\""
|
||||
excludeLinesFound=true
|
||||
done < src/patches/$1/exclude-patches
|
||||
|
||||
while IFS= read -r line2; do
|
||||
includePatches+=" -e \"$line2\""
|
||||
if [[ "$line2" == *"|"* ]]; then
|
||||
patch_name="${line2%%|*}"
|
||||
options="${line2#*|}"
|
||||
includePatches+=" -e \"${patch_name}\" ${options}"
|
||||
else
|
||||
includePatches+=" -e \"$line2\""
|
||||
fi
|
||||
includeLinesFound=true
|
||||
done < src/patches/$1/include-patches
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user