$genname token in export presets

Godot Version



In export_presets.cfg, we can use $genname token, which will later be replaced with the name of the project. Is there any documentation on this token & replacement mechanism? Can we use other built-in tokens & create custom ones?

The only token of its kind is $genname, and there’s no way to create custom tokens. It’s also only supported in Android export presets, and only in the package/unique_name field. You can see its implementation here:

I’ve opened a PR to document this: Improve documentation on Android package unique name by Calinou · Pull Request #88024 · godotengine/godot · GitHub

1 Like