Skip to content

Conversation

syntaxerror247
Copy link
Contributor

@syntaxerror247 syntaxerror247 commented Oct 1, 2025

This PR adds script to automatically upload the Android Editor build and publish it to Play Store closed testing.

Closes godotengine/godot-proposals#5410

@akien-mga
Copy link
Member

Thanks a lot, that looks great! I'll test it asap and let you know if I need any help to set things up on the Play Console.

@syntaxerror247 syntaxerror247 force-pushed the automate-playstore-upload branch from 63b35bf to 197356a Compare October 7, 2025 08:13
@syntaxerror247
Copy link
Contributor Author

Updated the script to also upload the native debug symbols.

@syntaxerror247
Copy link
Contributor Author

Thanks a lot, that looks great! I'll test it asap and let you know if I need any help to set things up on the Play Console.

Hey, just wanted to check if you got a chance to test it yet?

@syntaxerror247 syntaxerror247 force-pushed the automate-playstore-upload branch 3 times, most recently from 68cf06f to 6540a93 Compare October 10, 2025 04:26
@akien-mga
Copy link
Member

Tested yesterday and this morning with some adjustments made by both @syntaxerror247 and myself, it seems to be working well now!

We can't fully validate just yet because the builds I have available (4.5.1-rc2 and 4.6-dev1) have already been uploaded manually, so I can't override them:

Uploading /home/akien/godot-build-scripts/4.5/out/android/tools/android_editor.aab
Traceback (most recent call last):
  File "/home/akien/godot-build-scripts/4.5/build-android/playstore_upload_script.py", line 72, in <module>
    main(aab_path, nds_path, key_path)
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/akien/godot-build-scripts/4.5/build-android/playstore_upload_script.py", line 29, in main
    bundle_response = upload_request.execute()
  File "/home/akien/godot-build-scripts/4.5/venv/lib64/python3.13/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/home/akien/godot-build-scripts/4.5/venv/lib64/python3.13/site-packages/googleapiclient/http.py", line 938, in execute
    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 403 when requesting https://androidpublisher.googleapis.com/upload/androidpublisher/v3/applications/org.godotengine.editor.v4/edits/00598338330874133964/bundles?alt=json&uploadType=media returned "Version code 40501402 has already been used.". Details: "Version code 40501402 has already been used.">

Next build is likely going to be 4.5.1-stable so we can merge now and finalize testing it in production. (Should be cherry-picked to 4.5 branch, I'll do it.)

@akien-mga
Copy link
Member

I moved the location of the JSON key file to config.sh so users can name it however they want (like other keys in the root folder).

@akien-mga akien-mga merged commit f17aad6 into godotengine:main Oct 10, 2025
@akien-mga
Copy link
Member

Thanks a lot! Great work 🎉

akien-mga added a commit that referenced this pull request Oct 10, 2025
Co-authored-by: Rémi Verschelde <remi@godotengine.org>
(cherry picked from commit f17aad6)
@akien-mga
Copy link
Member

Cherry-picked to 4.5 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automate the Google Play store upload/release process for the Godot Android Editor

2 participants