Skip to content

Commit

Permalink
Merge branch 'j-hc:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsmmh authored Sep 24, 2024
2 parents 6e48174 + 7924b42 commit 2de1b49
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,19 @@ get_rv_prebuilts() {
echo

if [ "$integs_file" ]; then
(
if ! (
mkdir -p "${integs_file}-zip" || return 1
unzip -qo "${integs_file}" -d "${integs_file}-zip" || return 1
rm "${integs_file}" || return 1
cd "${integs_file}-zip" || return 1
java -cp "${BIN_DIR}/paccer.jar:${BIN_DIR}/dexlib2.jar" com.jhc.Main "${integs_file}-zip/classes.dex" "${integs_file}-zip/classes-patched.dex" || return 1
mv -f "${integs_file}-zip/classes-patched.dex" "${integs_file}-zip/classes.dex" || return 1
rm "${integs_file}" || return 1
zip -0rq "${integs_file}" . || return 1
rm -r "${integs_file}-zip"
) >&2 || epr "Patching revanced-integrations failed"
) >&2; then
epr "Patching revanced-integrations failed"
fi
rm -r "${integs_file}-zip" || :

fi
}

Expand Down

0 comments on commit 2de1b49

Please sign in to comment.