diff --git a/.github/workflows/build-prod.yml b/.github/workflows/build-prod.yml index da409d9..bc178ef 100644 --- a/.github/workflows/build-prod.yml +++ b/.github/workflows/build-prod.yml @@ -57,11 +57,8 @@ jobs: sed -i 's/singleInstancePerTask/singleTask/g' ./android/build/AndroidManifest.xml - versioncode=$(eval "git tag | grep -v "test" | wc -l") - sed -i "s/BUILD_VERSION_CODE/$versioncode/g" export_presets.cfg + versioncode=$(eval "cat export_presets.cfg | grep version/code | tail -1 | cut -d'=' -f2") sed -i "s/android:versionCode=\"1\"/android:versionCode=\"$versioncode\"/g" ./android/build/AndroidManifest.xml - - sed -i 's/BUILD_VERSION/${{ github.ref_name }}/g' export_presets.cfg sed -i "s/android:versionName=\"1.0\"/android:versionName=\"${{ github.ref_name }}\"/g" ./android/build/AndroidManifest.xml - name: export game diff --git a/export_presets.cfg b/export_presets.cfg index 5c00108..a0d5431 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -248,8 +248,8 @@ architectures/armeabi-v7a=false architectures/arm64-v8a=true architectures/x86=false architectures/x86_64=false -version/code=6 -version/name="v0.2.0" +version/code=8 +version/name="v0.2.1" package/unique_name="de.nitwel.$genname" package/name="Immersive Home" package/signed=true diff --git a/lib/home_apis/hass_ws/hass.gd b/lib/home_apis/hass_ws/hass.gd index 863d935..c04a3ff 100644 --- a/lib/home_apis/hass_ws/hass.gd +++ b/lib/home_apis/hass_ws/hass.gd @@ -40,7 +40,7 @@ func connect_ws(): # https://github.com/godotengine/godot/issues/84423 # Otherwise the WebSocketPeer will crash when receiving large packets - socket.set_inbound_buffer_size(65535 * 4) + socket.set_inbound_buffer_size(pow(2, 22)) # ~4MB buffer func _process(delta): socket.poll()