mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-04-29 22:24:34 +02:00
fix passing microg patch
This commit is contained in:
parent
b94efabf7e
commit
a0c0019e5f
8
utils.sh
8
utils.sh
@ -456,10 +456,8 @@ build_rv() {
|
||||
|
||||
if [ "${args[merge_integrations]}" = true ]; then p_patcher_args+=("-m ${args[integ]}"); fi
|
||||
local microg_patch
|
||||
microg_patch=$(jq -r ".[] | select(.compatiblePackages[].name==\"${pkg_name}\") | .name" "${args[ptjs]}" | grep -iF microg || :)
|
||||
microg_patch=$(jq -r ".[] | select(.compatiblePackages // [] | .[] | .name==\"${pkg_name}\") | .name" "${args[ptjs]}" | grep -iF microg || :)
|
||||
if [ "$microg_patch" ]; then
|
||||
microg_patch="${microg_patch,,}"
|
||||
microg_patch="${microg_patch// /-}"
|
||||
p_patcher_args=("${p_patcher_args[@]//-[ei] ${microg_patch}/}")
|
||||
fi
|
||||
|
||||
@ -507,9 +505,9 @@ build_rv() {
|
||||
if [ "$microg_patch" ]; then
|
||||
patched_apk="${TEMP_DIR}/${app_name_l}-${rv_brand_f}-${version_f}-${arch_f}-${build_mode}.apk"
|
||||
if [ "$build_mode" = apk ]; then
|
||||
patcher_args+=("-i ${microg_patch}")
|
||||
patcher_args+=("-i '${microg_patch}'")
|
||||
elif [ "$build_mode" = module ]; then
|
||||
patcher_args+=("-e ${microg_patch}")
|
||||
patcher_args+=("-e '${microg_patch}'")
|
||||
fi
|
||||
else
|
||||
patched_apk="${TEMP_DIR}/${app_name_l}-${rv_brand_f}-${version_f}-${arch_f}.apk"
|
||||
|
Loading…
x
Reference in New Issue
Block a user