diff --git a/.github/workflows/build-prod.yml b/.github/workflows/build-prod.yml index ced0f5d..aab8713 100644 --- a/.github/workflows/build-prod.yml +++ b/.github/workflows/build-prod.yml @@ -62,7 +62,9 @@ jobs: sed -i 's/singleInstancePerTask/singleTask/g' ./android/build/AndroidManifest.xml - sed -i 's/BUILD_VERSION/${{ github.ref_name }}/g' ./android/build/AndroidManifest.xml + sed -i 's/BUILD_VERSION/${{ github.ref_name }}/g' export_presets.cfg + versioncode=$(eval "git tag | grep -v "test" | wc -l") + sed -i "s/BUILD_VERSION_CODE/$versioncode/g" export_presets.cfg - name: export game id: export diff --git a/export_presets_prod.cfg b/export_presets_prod.cfg index 9ba8701..bb1d8c0 100644 --- a/export_presets_prod.cfg +++ b/export_presets_prod.cfg @@ -30,7 +30,7 @@ architectures/armeabi-v7a=false architectures/arm64-v8a=true architectures/x86=false architectures/x86_64=false -version/code=3 +version/code=BUILD_VERSION_CODE version/name="BUILD_VERSION" package/unique_name="de.nitwel.$genname" package/name="Immersive Home"