Customizing the Name of the Data Folder in Godot Mono Export

Godot Version

4.3.stable.mono

Question

Hello everyone,

I am currently working on a project using Godot Mono and I’ve encountered an issue regarding the naming convention of the data folder that gets included in my Linux exports. When I export my project for Linux (x86_64), it creates a directory named data_${projectName}_linuxbsd_x86_64, which contains necessary DLL files and other dependencies for running the application.

My question is: Is there a way to customize the name of this directory? Specifically, I would like to change the name from data_${projectName}_linuxbsd_x86_64 to something more descriptive or project-specific.

I understand that modifying the default export template might be one approach, but I am not sure how to go about doing this without risking breaking the export process. If anyone has experience with customizing these settings or if there is an officially supported method, your guidance would be greatly appreciated.

Thank you very much for your time and any advice you can offer.

Did you check this?

That page may not contains the folders I want to change, that data_${projectName}_linuxbsd_x86_64 directory is required by the main binrary, and contains many DLLs including GodotSharp.dll, System.*.dll and so on.

I found that path is actually hard-coded in modules/mono/godotsharp_dirs.cpp, I modified that code and build custom build (target=template_*)
and then my problem solved.

1 Like