0 votes

Hello, I try to setup gitlab pipelines to automatically export my godot project to Android.
I've found this: https://hub.docker.com/r/barichello/godot-ci/dockerfile
And based on that I added .gitlab-ci.yaml:

https://pastebin.com/tPgr7wBB

It's far from ideal, but the main issue now is for me to change editor settings needed for android export. From this page https://docs.godotengine.org/en/3.1/getting_started/workflow/export/exporting_for_android.html that would be:


In that screen, the path to 3 files needs to be set:

The adb executable (adb.exe on Windows)
The jarsigner executable (from JDK 6 or 8)
The debug keystore


Do you guys now how to do that? Where is the editor settings file? I need to do this in command line. It seems trivial, but I can't find the solution on the web.

Edit: On windows the file is located in C:\Users\USER\AppData\Roaming\Godot\editor_settings-3.tres

Edit 2: On gitlab pipelines I managed to change the settings basically using 'godot -e -q' to initialize them, and then sed to replace with correct paths: https://pastebin.com/LmkyJvaa With this export progressed and seem almost OK except these errors:

jar verified.
export: step 105: Aligning APK...
export: end
reimport: end
EditorSettings: Save OK!
ERROR: ~List: Condition ' _first != __null ' is true.
At: ./core/self_list.h:111.
ERROR: cleanup: There are still MemoryPool allocs in use at exit!
At: core/pool_vector.cpp:70.

EDIT3: OK it looks like APK was generated despite the errors on the godot command line. I'll test it on the phone to see if it works and keep this question open. I hope someone will give me some hints how I could improve the CI process, since the settings overwrite seem kind of... hacky.

in Engine by (68 points)
edited by

1 Answer

+1 vote
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.