get_rv_prebuilts

This commit is contained in:
j-hc 2024-09-23 22:56:42 +03:00
parent 998057a4c6
commit 1f408bfee8
No known key found for this signature in database
GPG Key ID: CDF97F1DBFE904CD

View File

@ -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
}