Skip to content

Commit

Permalink
dont exclude spoof patches for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hc committed Jan 16, 2025
1 parent e65a296 commit 2d8e1fb
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -529,12 +529,6 @@ build_rv() {
epr "You cant include/exclude microg patch as that's done by rvmm builder automatically."
p_patcher_args=("${p_patcher_args[@]//-[ei] ${microg_patch}/}")
fi
local spoof_streams_patch
spoof_streams_patch=$(grep "^Name: " <<<"$list_patches" | grep -i "spoof" | grep -i "streams" || :) spoof_streams_patch=${spoof_streams_patch#*: }
if [ -n "$spoof_streams_patch" ] && [[ ${p_patcher_args[*]} =~ $spoof_streams_patch ]]; then
epr "You cant include/exclude spoof stream patch as that's done by rvmm builder automatically."
p_patcher_args=("${p_patcher_args[@]//-[ei] ${spoof_streams_patch}/}")
fi

local patcher_args patched_apk build_mode
local rv_brand_f=${args[rv_brand],,}
Expand All @@ -543,7 +537,7 @@ build_rv() {
for build_mode in "${build_mode_arr[@]}"; do
patcher_args=("${p_patcher_args[@]}")
pr "Building '${table}' in '$build_mode' mode"
if [ -n "$microg_patch" ] || [ -n "$spoof_streams_patch" ]; then
if [ -n "$microg_patch" ]; then
patched_apk="${TEMP_DIR}/${app_name_l}-${rv_brand_f}-${version_f}-${arch_f}-${build_mode}.apk"
else
patched_apk="${TEMP_DIR}/${app_name_l}-${rv_brand_f}-${version_f}-${arch_f}.apk"
Expand All @@ -555,13 +549,6 @@ build_rv() {
patcher_args+=("-d \"${microg_patch}\"")
fi
fi
if [ -n "$spoof_streams_patch" ]; then
if [ "$build_mode" = apk ]; then
patcher_args+=("-e \"${spoof_streams_patch}\"")
elif [ "$build_mode" = module ]; then
patcher_args+=("-d \"${spoof_streams_patch}\"")
fi
fi
if [ "${args[riplib]}" = true ]; then
patcher_args+=("--rip-lib x86_64 --rip-lib x86")
if [ "$build_mode" = module ]; then
Expand Down

1 comment on commit 2d8e1fb

@COWANBAS
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it already in the latest version?

Please sign in to comment.