From 6f491ad4818cae431eb0924791bccbaeded4bc9c Mon Sep 17 00:00:00 2001 From: j-hc Date: Tue, 22 Oct 2024 12:18:02 +0300 Subject: [PATCH] module: include versionCode in version string --- .github/workflows/build.yml | 4 ++-- utils.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3b22993..76caa3a 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -78,8 +78,8 @@ jobs: cp -f build.tmp build.md get_update_json() { echo "{ - \"version\": \"$1\", - \"versionCode\": ${{ steps.next_ver_code.outputs.NEXT_VER_CODE}}, + \"version\": \"$1 (${{ steps.next_ver_code.outputs.NEXT_VER_CODE }})\", + \"versionCode\": ${{ steps.next_ver_code.outputs.NEXT_VER_CODE }}, \"zipUrl\": \"$2\", \"changelog\": \"https://raw.githubusercontent.com/$GITHUB_REPOSITORY/update/build.md\" }" diff --git a/utils.sh b/utils.sh index 6e05b0a..7b20a1f 100755 --- a/utils.sh +++ b/utils.sh @@ -598,7 +598,7 @@ MODULE_ARCH=$ma" >"$1/config" module_prop() { echo "id=${1} name=${2} -version=v${3} +version=v${3} (${NEXT_VER_CODE}) versionCode=${NEXT_VER_CODE} author=j-hc description=${4}" >"${6}/module.prop"