module: include versionCode in version string

This commit is contained in:
j-hc 2024-10-22 12:18:02 +03:00
parent 45bcce5986
commit 6f491ad481
No known key found for this signature in database
GPG Key ID: CDF97F1DBFE904CD
2 changed files with 3 additions and 3 deletions

View File

@ -78,8 +78,8 @@ jobs:
cp -f build.tmp build.md cp -f build.tmp build.md
get_update_json() { get_update_json() {
echo "{ echo "{
\"version\": \"$1\", \"version\": \"$1 (${{ steps.next_ver_code.outputs.NEXT_VER_CODE }})\",
\"versionCode\": ${{ steps.next_ver_code.outputs.NEXT_VER_CODE}}, \"versionCode\": ${{ steps.next_ver_code.outputs.NEXT_VER_CODE }},
\"zipUrl\": \"$2\", \"zipUrl\": \"$2\",
\"changelog\": \"https://raw.githubusercontent.com/$GITHUB_REPOSITORY/update/build.md\" \"changelog\": \"https://raw.githubusercontent.com/$GITHUB_REPOSITORY/update/build.md\"
}" }"

View File

@ -598,7 +598,7 @@ MODULE_ARCH=$ma" >"$1/config"
module_prop() { module_prop() {
echo "id=${1} echo "id=${1}
name=${2} name=${2}
version=v${3} version=v${3} (${NEXT_VER_CODE})
versionCode=${NEXT_VER_CODE} versionCode=${NEXT_VER_CODE}
author=j-hc author=j-hc
description=${4}" >"${6}/module.prop" description=${4}" >"${6}/module.prop"