mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-29 21:10:25 +02:00
build non-root if microg-patches are included
This commit is contained in:
parent
48a6d581c8
commit
85ca4ae265
@ -19,7 +19,7 @@ There is also an extra module in releases that detaches YouTube and YouTube Musi
|
|||||||
* Run the [workflow](../../actions/workflows/build.yml)
|
* Run the [workflow](../../actions/workflows/build.yml)
|
||||||
* Grab your modules from [releases](../../releases)
|
* Grab your modules from [releases](../../releases)
|
||||||
|
|
||||||
**If you include microg patches in [build.conf](./build.conf), you get noroot APKs instead of Magisk modules. Twitter and Reddit will always be built as APKs regardless.**
|
**If you include microg patches in [build.conf](./build.conf), you get non-root APKs instead of Magisk modules. Twitter and Reddit will always be built as APKs regardless.**
|
||||||
|
|
||||||
## Updating
|
## Updating
|
||||||
The modules support Magisk update which means you will receive updates from your Magisk app, downloading from github releases and reflashing is not necessary.
|
The modules support Magisk update which means you will receive updates from your Magisk app, downloading from github releases and reflashing is not necessary.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# ex: for excluding patches: -e patchname -e anotherpatchname
|
# ex: for excluding patches: -e patchname -e anotherpatchname
|
||||||
# if you remove '-e microg-support' arg, you get noroot builds
|
# if you remove '-e microg-support' arg, you get non-root builds
|
||||||
YT_PATCHER_ARGS="-e microg-support"
|
YT_PATCHER_ARGS="-e microg-support"
|
||||||
MUSIC_PATCHER_ARGS="-e music-microg-support"
|
MUSIC_PATCHER_ARGS="-e music-microg-support"
|
||||||
|
|
||||||
|
4
utils.sh
4
utils.sh
@ -150,7 +150,7 @@ build_yt() {
|
|||||||
fi
|
fi
|
||||||
patch_apk "$stock_apk" "$patched_apk" "${YT_PATCHER_ARGS} -m ${RV_INTEGRATIONS_APK}"
|
patch_apk "$stock_apk" "$patched_apk" "${YT_PATCHER_ARGS} -m ${RV_INTEGRATIONS_APK}"
|
||||||
|
|
||||||
if [[ "$YT_PATCHER_ARGS" != *"-e microg-support"* ]]; then
|
if [[ "$YT_PATCHER_ARGS" != *"-e microg-support"* ]] && [[ "$YT_PATCHER_ARGS" != *"--exclusive"* ]] || [[ "$YT_PATCHER_ARGS" == *"-i microg-support"* ]]; then
|
||||||
mv -f "$patched_apk" build
|
mv -f "$patched_apk" build
|
||||||
echo "Built YouTube (no root) '${BUILD_DIR}/${patched_apk}'"
|
echo "Built YouTube (no root) '${BUILD_DIR}/${patched_apk}'"
|
||||||
return
|
return
|
||||||
@ -190,7 +190,7 @@ build_music() {
|
|||||||
fi
|
fi
|
||||||
patch_apk "$stock_apk" "$patched_apk" "${MUSIC_PATCHER_ARGS} -m ${RV_INTEGRATIONS_APK}"
|
patch_apk "$stock_apk" "$patched_apk" "${MUSIC_PATCHER_ARGS} -m ${RV_INTEGRATIONS_APK}"
|
||||||
|
|
||||||
if [[ "$MUSIC_PATCHER_ARGS" != *"-e music-microg-support"* ]]; then
|
if [[ "$MUSIC_PATCHER_ARGS" != *"-e music-microg-support"* ]] && [[ "$MUSIC_PATCHER_ARGS" != *"--exclusive"* ]] || [[ "$MUSIC_PATCHER_ARGS" == *"-i music-microg-support"* ]]; then
|
||||||
mv -f "$patched_apk" build
|
mv -f "$patched_apk" build
|
||||||
echo "Built Music (no root) '${BUILD_DIR}/${patched_apk}'"
|
echo "Built Music (no root) '${BUILD_DIR}/${patched_apk}'"
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user