Open NetSysFire opened 1 month ago
I have found the issue! Credits to paulguy for suggesting that.
You run godot and apparently this has created a dummy config in the past:
However, it does not do that anymore and it is missing the headers. I solved the issue by prepending this to the file:
[gd_resource type="EditorSettings" format=3]
[resource]
I'll PR that here real quick.
For me the first thing you posted actually worked when pointed to the current version:
echo 'export/android/java_sdk_path = "/usr/lib/jvm/java-17-openjdk-amd64"' >> ~/.config/godot/editor_settings-4.3.tres
This is the complete debug step I have now
# Android Debug Job. It will use the generated debug.keystore.
android_debug:
stage: export
script:
- echo 'export/android/java_sdk_path = "/usr/lib/jvm/java-17-openjdk-amd64"' >> ~/.config/godot/editor_settings-4.3.tres
- godot --headless --verbose --export-debug "Android Debug" ./build/android/$EXPORT_NAME.apk
artifacts:
name: $EXPORT_NAME-$CI_JOB_NAME
paths:
- build/android
Somehow this passes
Curious. What user/home does that run in? Maybe invoking godot and exiting immediately does place a config but not in a place where you'd expect it.
All builds (linux, mac and windows) export well (thanks for your work on this project!), except Android, which fails with the error in the title. I thought this was going to be an easy fix and did the following, as the value is also missing from your dockerfile:
But it still complained about the same error. I tried different editor settings paths, including /root/.config/godot and copying
editor_settings-4.tres
toeditor_settings-4.3.tres
(in both /root and ~/) but none worked. Then I setJAVA_HOME
to the same value as in the config and the exporter was mostly happy. Since this environment variable is independent from the config, see the godot source code, this strongly suggests that, for whatever reason, the editor settings are not being read. There is no option in godot, that I found at least, to make it dump the editor settings it sees for additional debugging.Since the
ANDROID_HOME
env var is in the dockerfile, I believe this is why it did not complain about the Android SDK path. It also saysWARNING: Code Signing: Could not find keystore, unable to export.
, indicating again that the editor settings are not being applied.$XDG_DATA_HOME
and$XDG_DATA_CONFIG
are unset or empty.This is on github actions. You can find the file here: https://github.com/sourceofmana/sourceofmana-ci-test/blob/master/.github/workflows/godot-ci.yml But for the sake of of saving you a click, here is a tidied up version which has some of my debug attempts removed: