utilise magisk module updating

This commit is contained in:
j-hc
2022-07-12 14:41:01 +03:00
parent 3cb2af2a3b
commit 09fa1fd5a7
4 changed files with 49 additions and 11 deletions

View File

@ -86,7 +86,7 @@ build_yt() {
fi
yt_patched_apk="${TEMP_DIR}/yt-revanced-base.apk"
java -jar $RV_CLI_JAR -a $yt_base_apk -c -o $yt_patched_apk -b $RV_PATCHES_JAR -m $RV_INTEGRATIONS_APK $1
java -jar $RV_CLI_JAR -a $yt_base_apk -c -o $yt_patched_apk -b $RV_PATCHES_JAR -m $RV_INTEGRATIONS_APK -e premium-heading $1
mv -f "$yt_patched_apk" "${MODULE_TEMPLATE_DIR}/base.apk"
echo "Creating the magisk module for YouTube..."
@ -153,16 +153,20 @@ yt_module_prop() {
echo "id=ytrv-magisk
name=YouTube ReVanced
version=v${1}
versionCode=1
versionCode=$(date +'%Y%m%d')
author=j-hc
description=mounts base.apk for YouTube ReVanced" >"${MODULE_TEMPLATE_DIR}/module.prop"
description=mounts base.apk for YouTube ReVanced
updateJson=https://raw.githubusercontent.com/${GITHUB_REPOSITORY}/update/yt-update.json
" >"${MODULE_TEMPLATE_DIR}/module.prop"
}
music_module_prop() {
echo "id=ytmusicrv-magisk
name=YouTube Music ReVanced
version=v${1}
versionCode=1
versionCode=$(date +'%Y%m%d')
author=j-hc
description=mounts base.apk for YouTube Music ReVanced" >"${MODULE_TEMPLATE_DIR}/module.prop"
description=mounts base.apk for YouTube Music ReVanced
updateJson=https://raw.githubusercontent.com/${GITHUB_REPOSITORY}/update/music-update.json
" >"${MODULE_TEMPLATE_DIR}/module.prop"
}