Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
NoName-exe authored Oct 28, 2023
2 parents 5274958 + 7727e7f commit a94c7e4
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ log "\n[Main Repo](https://github.com/NoName-exe/revanced-extended)"
log "\nChangelog:"
log "$(cat $TEMP_DIR/*-rv/changelog.md)"

SKIPPED=$(cat $TEMP_DIR/skipped || :)
SKIPPED=$(cat $TEMP_DIR/skipped 2>/dev/null || :)
if [ -n "$SKIPPED" ]; then
log "\nSkipped:"
log "$SKIPPED"
Expand Down
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ logging-to-file = true # enables logging of every patch process to a sepe
enable-magisk-update = true # set this to false if you do not want to receive updates for the module in magisk app
patches-source = "inotia00/revanced-patches"
integrations-source = "inotia00/revanced-integrations"
cli-source = "inotia00/revanced-cli"
rv-brand = "ReVanced eXtended"

# add 'enabled = false' for not patching a specific app or remove it from the config
Expand Down
Binary file modified ks.keystore
Binary file not shown.
30 changes: 16 additions & 14 deletions options.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@

[
{
"patchName": "Custom package name",
"options": [
{
"key": "YouTubePackageName",
"value": "yt.rvx.noname.exe"
},
{
"key": "MusicPackageName",
"value": "ytm.rvx.noname.exe"
}
]
}
]
{
"patchName": "Custom package name",
"options": [
{
"key": "PackageNameYouTube",
"value": "yt.rvx.noname.exe"
},
{
"key": "PackageNameYouTubeMusic",
"value": "ytm.rvx.noname.exe"
}
]
}
]

7 changes: 4 additions & 3 deletions utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ get_archive_pkg_name() { echo "$__ARCHIVE_PKG_NAME__"; }
patch_apk() {
local stock_input=$1 patched_apk=$2 patcher_args=$3 rv_cli_jar=$4 rv_patches_jar=$5
declare -r tdir=$(mktemp -d -p $TEMP_DIR)
local cmd="java -jar $rv_cli_jar patch $stock_input -r $tdir -p -o $patched_apk -b $rv_patches_jar --keystore=ks.keystore $patcher_args"
local cmd="java -jar $rv_cli_jar patch $stock_input -r $tdir -p -o $patched_apk -b $rv_patches_jar \
--keystore=ks.keystore --keystore-entry-password=123456789 --keystore-password=123456789 --signer=jhc --alias=jhc $patcher_args"
if [ "$OS" = Android ]; then cmd+=" --custom-aapt2-binary=${TEMP_DIR}/aapt2"; fi
pr "$cmd"
if [ "${DRYRUN:-}" = true ]; then
Expand Down Expand Up @@ -411,7 +412,7 @@ build_rv() {
if [ "${args[merge_integrations]}" = true ]; then p_patcher_args+=("-m ${args[integ]}"); fi
local microg_patch
microg_patch=$(jq -r ".[] | select(.compatiblePackages // [] | .[] | .name==\"${pkg_name}\") | .name" "${args[ptjs]}" | grep -iF microg || :)
if [ "$microg_patch" ] && [[ ${p_patcher_args[*]} =~ $microg_patch ]]; then
if [ -n "$microg_patch" ] && [[ ${p_patcher_args[*]} =~ $microg_patch ]]; then
epr "You cant include/exclude microg patches as that's done by rvmm builder automatically."
p_patcher_args=("${p_patcher_args[@]//-[ei] ${microg_patch}/}")
fi
Expand Down Expand Up @@ -457,7 +458,7 @@ build_rv() {
for build_mode in "${build_mode_arr[@]}"; do
patcher_args=("${p_patcher_args[@]}")
pr "Building '${table}' in '$build_mode' mode"
if [ "$microg_patch" ]; then
if [ -n "$microg_patch" ]; then
patched_apk="${TEMP_DIR}/${app_name_l}-${rv_brand_f}-${version_f}-${arch_f}-${build_mode}.apk"
if [ "$build_mode" = apk ]; then
patcher_args+=("-i \"${microg_patch}\"")
Expand Down

0 comments on commit a94c7e4

Please sign in to comment.