configurable magisk update

This commit is contained in:
j-hc 2022-07-24 17:41:50 +03:00
parent 52270c20d9
commit cf64a4c6e2
No known key found for this signature in database
GPG Key ID: 242B44D16774A2ED
2 changed files with 13 additions and 5 deletions

View File

@ -1,4 +1,4 @@
YT_PATCHER_ARGS="-e microg-support"
YT_PATCHER_ARGS="-e microg-support" # ex: for excluding patches: -e patchname -e anotherpatchname
MUSIC_PATCHER_ARGS="-e microg-support"
BUILD_YT=true
@ -6,6 +6,8 @@ BUILD_MUSIC_ARM64_V8A=true
BUILD_MUSIC_ARM_V7A=true
BUILD_TWITTER=true
ENABLE_MAGISK_UPDATE=true # set this to false if you do not want to receive updates from magisk app
UPDATE_PREBUILTS=true
# this is the repo to fallback for magisk update json if you are not building on github actions ↓

View File

@ -219,8 +219,11 @@ name=YouTube ReVanced
version=v${1}
versionCode=${NEXT_VER_CODE}
author=j-hc
description=mounts base.apk for YouTube ReVanced
updateJson=https://raw.githubusercontent.com/${GITHUB_REPOSITORY}/update/yt-update.json" >"${MODULE_TEMPLATE_DIR}/module.prop"
description=mounts base.apk for YouTube ReVanced" >"${MODULE_TEMPLATE_DIR}/module.prop"
if [ "$ENABLE_MAGISK_UPDATE" = true ]; then
echo "updateJson=https://raw.githubusercontent.com/${GITHUB_REPOSITORY}/update/yt-update.json" >>"${MODULE_TEMPLATE_DIR}/module.prop"
fi
}
music_module_prop() {
@ -240,6 +243,9 @@ name=YouTube Music ReVanced
version=v${1}
versionCode=${NEXT_VER_CODE}
author=j-hc
description=mounts base.apk for YouTube Music ReVanced
updateJson=${update_json}" >"${MODULE_TEMPLATE_DIR}/module.prop"
description=mounts base.apk for YouTube Music ReVanced" >"${MODULE_TEMPLATE_DIR}/module.prop"
if [ "$ENABLE_MAGISK_UPDATE" = true ]; then
echo "updateJson=${update_json}" >>"${MODULE_TEMPLATE_DIR}/module.prop"
fi
}