Skip to content

Commit e65a296

Browse files
committed
module: add patches version in module.prop
1 parent 5efca51 commit e65a296

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,10 +592,12 @@ build_rv() {
592592
local upj="${table,,}-update.json"
593593

594594
module_config "$base_template" "$pkg_name" "$version" "$arch"
595+
596+
local rv_patches_ver="${rv_patches_jar##*-}"
595597
module_prop \
596598
"${args[module_prop_name]}" \
597599
"${app_name} ${args[rv_brand]}" \
598-
"$version" \
600+
"${version} (patches: ${rv_patches_ver%%.rvp})" \
599601
"${app_name} ${args[rv_brand]} Magisk module" \
600602
"https://raw.githubusercontent.com/${GITHUB_REPOSITORY-}/update/${upj}" \
601603
"$base_template"
@@ -628,7 +630,7 @@ MODULE_ARCH=$ma" >"$1/config"
628630
module_prop() {
629631
echo "id=${1}
630632
name=${2}
631-
version=v${3} (${NEXT_VER_CODE})
633+
version=v${3}
632634
versionCode=${NEXT_VER_CODE}
633635
author=j-hc
634636
description=${4}" >"${6}/module.prop"

0 commit comments

Comments
 (0)