mirror of
https://github.com/FiorenMas/Revanced-And-Revanced-Extended-Non-Root.git
synced 2025-12-06 08:07: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:
@@ -39,6 +39,14 @@ You should open the folder `Revanced-And-Revanced-Extended-Non-Root/src/patches/
|
|||||||
|
|
||||||
You should open the folder [Revanced-And-Revanced-Extended-Non-Root/src/options/](../src/options). It contains files revanced.json, ReX.json... edit those file the same as you would options.json
|
You should open the folder [Revanced-And-Revanced-Extended-Non-Root/src/options/](../src/options). It contains files revanced.json, ReX.json... edit those file the same as you would options.json
|
||||||
|
|
||||||
|
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`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Q: I am facing errors using your apps, what do I do?
|
### Q: I am facing errors using your apps, what do I do?
|
||||||
|
|||||||
@@ -99,9 +99,14 @@ get_patches_key() {
|
|||||||
excludePatches+=" -d \"$line1\""
|
excludePatches+=" -d \"$line1\""
|
||||||
excludeLinesFound=true
|
excludeLinesFound=true
|
||||||
done < src/patches/$1/exclude-patches
|
done < src/patches/$1/exclude-patches
|
||||||
|
|
||||||
while IFS= read -r line2; do
|
while IFS= read -r line2; do
|
||||||
|
if [[ "$line2" == *"|"* ]]; then
|
||||||
|
patch_name="${line2%%|*}"
|
||||||
|
options="${line2#*|}"
|
||||||
|
includePatches+=" -e \"${patch_name}\" ${options}"
|
||||||
|
else
|
||||||
includePatches+=" -e \"$line2\""
|
includePatches+=" -e \"$line2\""
|
||||||
|
fi
|
||||||
includeLinesFound=true
|
includeLinesFound=true
|
||||||
done < src/patches/$1/include-patches
|
done < src/patches/$1/include-patches
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"patchName" : "Custom branding",
|
|
||||||
"options" : [ {
|
|
||||||
"key" : "appName",
|
|
||||||
"value" : "ReVanced"
|
|
||||||
} ]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
@@ -1 +1 @@
|
|||||||
Custom branding
|
Custom branding|-OappName="YouTube ReVanced" -OiconPath=ReVanced*Logo
|
||||||
|
|||||||
Reference in New Issue
Block a user