mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-05-22 19:09:02 +02:00
update parallelization
This commit is contained in:
parent
031a4a1500
commit
2f31c83f15
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,3 +6,4 @@
|
||||
/build
|
||||
build.md
|
||||
/test
|
||||
cmpr
|
||||
|
12
build.sh
12
build.sh
@ -47,15 +47,11 @@ build_functions=(
|
||||
)
|
||||
|
||||
log "**App Versions:**"
|
||||
idx=0
|
||||
for f in "${build_functions[@]}"; do
|
||||
ret=$($f &)
|
||||
if ! ((idx % 2)); then
|
||||
wait
|
||||
fi
|
||||
if [[ $ret != 2 ]]; then
|
||||
idx=$((idx + 1))
|
||||
fi
|
||||
eval "$f &"
|
||||
while [ "$(jobs -r | wc -l)" -ge 3 ]; do
|
||||
sleep 5
|
||||
done
|
||||
done
|
||||
wait
|
||||
rm -rf temp/tmp.*
|
||||
|
Binary file not shown.
Binary file not shown.
4
utils.sh
4
utils.sh
@ -150,7 +150,6 @@ build_rv() {
|
||||
if [ "${args[apkmirror_dlurl]:-}" ] && [ "${args[regexp]:-}" ]; then dl_from=apkmirror; else dl_from=uptodown; fi
|
||||
|
||||
if [ "$mode_arg" = none ]; then
|
||||
echo 2
|
||||
return
|
||||
elif [ "$mode_arg" = module ]; then
|
||||
build_mode_arr=(module)
|
||||
@ -160,8 +159,7 @@ build_rv() {
|
||||
build_mode_arr=(apk module)
|
||||
else
|
||||
echo "ERROR: undefined build mode for ${args[app_name]}: '${mode_arg}'"
|
||||
echo 2
|
||||
return
|
||||
return 1
|
||||
fi
|
||||
|
||||
for build_mode in "${build_mode_arr[@]}"; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user