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:
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:
export: step 105: Aligning APK...
EditorSettings: Save OK!
ERROR: ~List: Condition ' _first != __null ' is true.
ERROR: cleanup: There are still MemoryPool allocs in use at exit!
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.