Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ apkmirror-dlurl = "https://www.apkmirror.com/apk/inc/app"

## More about other options:

<<<<<<< HEAD
There exists an example below with all defaults shown and all the keys explicitly set.
**All keys are optional** (except download urls) and are assigned to their default values if not set explicitly.
=======
There exists an example below with all defaults shown and all the keys explicitly set.
**All keys are optional** (except download urls) and are assigned to their default values if not set explicitly.
>>>>>>> 5e2d728c683b60e7a42b0f54511bdc59dbb9e3a8

```toml
parallel-jobs = 1 # amount of cores to use for parallel patching, if not set $(nproc) is used
Expand Down Expand Up @@ -52,7 +57,11 @@ excluded-patches = """\
"""

included-patches = "'Some Patch'" # whitespace seperated list of non-default patches to include. default: ""
<<<<<<< HEAD
include-stock = true # includes stock apk in the module. default: true
=======
include-stock = "merged" # 'merged', 'split' or 'disable'. default: merged
>>>>>>> 5e2d728c683b60e7a42b0f54511bdc59dbb9e3a8
exclusive-patches = false # exclude all patches by default. default: false

apkmirror-dlurl = "https://www.apkmirror.com/apk/inc/app"
Expand Down
29 changes: 29 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,24 @@ DEF_CLI_VER=$(toml_get "$main_config_t" cli-version) || DEF_CLI_VER="latest"
DEF_PATCHES_SRC=$(toml_get "$main_config_t" patches-source) || DEF_PATCHES_SRC="ReVanced/revanced-patches"
DEF_CLI_SRC=$(toml_get "$main_config_t" cli-source) || DEF_CLI_SRC="ReVanced/revanced-cli"
DEF_RV_BRAND=$(toml_get "$main_config_t" rv-brand) || DEF_RV_BRAND="ReVanced"
<<<<<<< HEAD
DEF_DPI_LIST=$(toml_get "$main_config_t" dpi) || DEF_DPI_LIST="nodpi anydpi"
=======
>>>>>>> 5e2d728c683b60e7a42b0f54511bdc59dbb9e3a8
mkdir -p "$TEMP_DIR" "$BUILD_DIR"

if [ "${2-}" = "--config-update" ]; then
config_update
exit 0
fi

<<<<<<< HEAD
# Save old build-state.md for diff-based changelog (full state from previous build)
if [ -f build-state.md ] && [ -s build-state.md ]; then
cp build-state.md "$TEMP_DIR/old_build_state.md"
fi
=======
>>>>>>> 5e2d728c683b60e7a42b0f54511bdc59dbb9e3a8
: >build.md
ENABLE_MODULE_UPDATE=$(toml_get "$main_config_t" enable-module-update) || ENABLE_MODULE_UPDATE=true
if [ "$ENABLE_MODULE_UPDATE" = true ] && [ -z "${GITHUB_REPOSITORY-}" ]; then
Expand Down Expand Up @@ -105,6 +111,14 @@ for table_name in $(toml_get_table_names); do
abort "ERROR: build-mode '${app_args[build_mode]}' is not a valid option for '${table_name}': only 'both', 'apk' or 'module' is allowed"
fi
} || app_args[build_mode]=apk
<<<<<<< HEAD
=======
app_args[include_stock]=$(toml_get "$t" include-stock) && {
if ! isoneof "${app_args[include_stock]}" disable merged split; then
abort "ERROR: include-stock '${app_args[include_stock]}' is not a valid option for '${table_name}': only 'disable', 'merged' or 'split' is allowed"
fi
} || app_args[include_stock]=merged
>>>>>>> 5e2d728c683b60e7a42b0f54511bdc59dbb9e3a8

for dl_from in "${DL_SRCS[@]}"; do
if app_args[${dl_from}_dlurl]=$(toml_get "$t" "${dl_from}-dlurl"); then
Expand All @@ -122,8 +136,13 @@ for table_name in $(toml_get_table_names); do
abort "wrong arch '${app_args[arch]}' for '$table_name'"
fi

<<<<<<< HEAD
app_args[include_stock]=$(toml_get "$t" include-stock) || app_args[include_stock]=true && vtf "${app_args[include_stock]}" "include-stock"
app_args[dpi]=$(toml_get "$t" dpi) || app_args[dpi]="$DEF_DPI_LIST"
=======
app_args[pkg_name]=$(toml_get "$t" pkg-name) || app_args[pkg_name]=""
app_args[dpi]=$(toml_get "$t" dpi) || app_args[dpi]=""
>>>>>>> 5e2d728c683b60e7a42b0f54511bdc59dbb9e3a8
table_name_f=${table_name,,}
table_name_f=${table_name_f// /-}
app_args[module_prop_name]=$(toml_get "$t" module-prop-name) || app_args[module_prop_name]="${table_name_f}-jhc"
Expand Down Expand Up @@ -158,6 +177,7 @@ wait
rm -rf temp/tmp.*
if [ -z "$(ls -A1 "${BUILD_DIR}")" ]; then abort "All builds failed."; fi

<<<<<<< HEAD
# Initial changelog logic
# log "\nInstall [MicroG-RE](https://github.com/MorpheApp/MicroG-RE/releases) for non-root YouTube and YT Music APKs"
# log "Use [zygisk-detach](https://github.com/j-hc/zygisk-detach) to detach root ReVanced YouTube and YT Music from Play Store"
Expand Down Expand Up @@ -191,13 +211,20 @@ if [ -f "$TEMP_DIR/old_build_state.md" ]; then
fi
done <<<"$_full_build"
fi
=======
log "\nInstall [Microg](https://github.com/ReVanced/GmsCore/releases) for non-root YouTube and YT Music APKs"
log "Use [zygisk-detach](https://github.com/j-hc/zygisk-detach) to detach YouTube and YT Music modules from Play Store"
log "\n[revanced-magisk-module](https://github.com/j-hc/revanced-magisk-module)\n"
log "$(cat "$TEMP_DIR"/*/changelog.md)"
>>>>>>> 5e2d728c683b60e7a42b0f54511bdc59dbb9e3a8

SKIPPED=$(cat "$TEMP_DIR"/skipped 2>/dev/null || :)
if [ -n "$SKIPPED" ]; then
log "\nSkipped:"
log "$SKIPPED"
fi

<<<<<<< HEAD
# New skipped changelog logic with links (@ev3rlin changes)

# SKIPPED=$(cat "$TEMP_DIR"/skipped 2>/dev/null || :)
Expand All @@ -214,4 +241,6 @@ fi
# log "$(cat "$TEMP_DIR"/*-rv/changelog.md)"
# fi

=======
>>>>>>> 5e2d728c683b60e7a42b0f54511bdc59dbb9e3a8
pr "Done"
69 changes: 69 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ parallel-jobs = 1

# you can use rvmm-config-gen to generate a config

<<<<<<< HEAD
patches-source = "anddea/revanced-patches"
patches-version = "latest"

Expand Down Expand Up @@ -37,3 +38,71 @@ archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.a
excluded-patches = "'Custom header for YouTube Music'"
included-patches = "'Visual preferences icons for YouTube Music' 'Return YouTube Username' 'Disable music video in album'"
patcher-args = "-e 'Custom branding name for YouTube Music' -OappName='YT Music RVX' -e 'Custom branding icon for YouTube Music' -OappIcon='vanced_black'"
=======
[YouTube]
build-mode = "both"
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube"
uptodown-dlurl = "https://youtube.en.uptodown.com/android"
archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.youtube"

[YouTube-Morphe]
app-name = "YouTube"
patches-source = "MorpheApp/morphe-patches"
cli-source = "MorpheApp/morphe-cli"
rv-brand = "Morphe"
build-mode = "both"
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube"
uptodown-dlurl = "https://youtube.en.uptodown.com/android"
archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.youtube"

[Music]
build-mode = "both"
arch = "both"
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube-music"
uptodown-dlurl = "https://youtube-music.en.uptodown.com/android"
archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.apps.youtube.music"

[Music-Morphe]
app-name = "Music"
patches-source = "MorpheApp/morphe-patches"
cli-source = "MorpheApp/morphe-cli"
rv-brand = "Morphe"
build-mode = "both"
arch = "both"
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/youtube-music"
uptodown-dlurl = "https://youtube-music.en.uptodown.com/android"
archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.apps.youtube.music"

[Reddit-Morphe]
app-name = "Reddit"
rv-brand = "Morphe"
build-mode = "both"
patches-source = "MorpheApp/morphe-patches"
cli-source = "MorpheApp/morphe-cli"
apkmirror-dlurl = "https://www.apkmirror.com/apk/redditinc/reddit/"
archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.reddit.frontpage"
uptodown-dlurl = "https://reddit-official-app.en.uptodown.com/android"
dpi = "120-640dpi"

[Twitter]
patches-source = "crimera/piko"
cli-source = "MorpheApp/morphe-cli"
rv-brand = "Piko"
apkmirror-dlurl = "https://www.apkmirror.com/apk/x-corp/twitter/"
archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.twitter.android"
build-mode = "module"
version = "11.81.0-release.0"
include-stock = "split"

[GooglePhotos]
build-mode = "both"
arch = "both"
apkmirror-dlurl = "https://www.apkmirror.com/apk/google-inc/photos/"
uptodown-dlurl = "https://google-photos.en.uptodown.com/android"
archive-dlurl = "https://archive.org/download/jhc-apks/apks/com.google.android.apps.photos"

[Twitch]
enabled = false
apkmirror-dlurl = "https://www.apkmirror.com/apk/twitch-interactive-inc/twitch/"
uptodown-dlurl = "https://twitch.en.uptodown.com/android"
>>>>>>> 5e2d728c683b60e7a42b0f54511bdc59dbb9e3a8
Loading