Skip to content

Commit

Permalink
get_rv_prebuilts
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hc committed Sep 23, 2024
1 parent 998057a commit 1f408bf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 1f408bf

Please sign in to comment.