mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-04-29 22:24:34 +02:00
get_rv_prebuilts
This commit is contained in:
parent
998057a4c6
commit
1f408bfee8
7
utils.sh
7
utils.sh
@ -82,13 +82,13 @@ get_rv_prebuilts() {
|
||||
name=$(jq -r .name <<<"$asset")
|
||||
file="${dir}/${name}"
|
||||
gh_dl "$file" "$url" >&2 || return 1
|
||||
if [ "$tag" = "Integrations" ]; then integs_file=$file; fi
|
||||
else
|
||||
name=$(basename "$file")
|
||||
tag_name=$(cut -d'-' -f3- <<<"$name")
|
||||
tag_name=v${tag_name%.*}
|
||||
if [ "$tag_name" = "v" ]; then abort; fi
|
||||
fi
|
||||
if [ "$tag" = "Integrations" ] && [ ! -f "$file" ]; then integs_file=$file; fi
|
||||
|
||||
echo "$tag: $(cut -d/ -f1 <<<"$src")/${name} " >>"${cl_dir}/changelog.md"
|
||||
echo -n "$file "
|
||||
@ -116,10 +116,7 @@ get_rv_prebuilts() {
|
||||
mv -f "${integs_file}-zip/classes-patched.dex" "${integs_file}-zip/classes.dex" || return 1
|
||||
zip -0rq "${integs_file}" . || return 1
|
||||
rm -r "${integs_file}-zip"
|
||||
} >&2 || {
|
||||
epr "Patching revanced-integrations failed"
|
||||
return 1
|
||||
}
|
||||
} >&2 || epr "Patching revanced-integrations failed"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user