No data folder created on export

Godot Version

4.4.1 Mono

Question

Hi, already spent too much time trying to debug this with ChatGPT, maybe real people will know better.

I am trying to build and create a GitHub release for my Godot C# game. I have a problem that .exe is created, but data_* folder is missing. It works locally. It also doesn’t produce any errors. I’m using chickensoft-games/setup-godot for Godot setup and have following build steps using it:

  • godot --headless --build-solutions --quit || exit 0

  • godot --headless --export-release "Windows Desktop" ../../builds/windows/neonite.exe

As I’ve already mentioned it results in only .exe file in the builds/windows directory. It’s most likely running on linux (default GitHub action runner). Locally on Windows machine it works correctly. Any help would be appreciated. Cheers.

1 Like

got the same issue works fine locally but in a github action it’s missing the data folder

Noticed one thing regarding this. Running export from editor compiles the whole solution into the .godot\mono\temp\bin\ExportRelease\win-x64 directory which is then copied as the “data_***_windows_x86_64” directory this doesn’t happen with the headless mode. But the temporary directory does exist but it’s empty when using headless mode.

Think I figured it out. In my case it was an issue with not building the C# project before running the export.

Make sure to run “dotnet restore” and “dotnet build” and that it actually builds before you do export the headless export doesn’t compile C# sources like it does in editor.