Godot export to Android from command line in CI

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bad_exception

Hello, I try to setup gitlab pipelines to automatically export my godot project to Android.
I’ve found this: Docker
And based on that I added .gitlab-ci.yaml:

image: barichello/godot-ci:3.1.2stages: - exportbefore_script: - m - Pastebin.com

It’s far from ideal, but the main issue now is for me to change editor settings needed for android export. From this page Exporting for Android — Godot Engine (3.1) documentation in English 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: # Update godot editor settings for android export - godot -e -q - echo - Pastebin.com 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.

:bust_in_silhouette: Reply From: bad_exception