TL;DR: Exporting my game via CLI produces output files but they seem to be templates that aren't filled in. Export via UI works fine but isn't an option since I'm aiming to automate web deployment.
Hi, I'm making a online web game and decided to do the frontend in godot rather than some JS framework. The project is run on a cloud server and as such I'd like to automate the deployment process which includes exporting the project via the CLI.
This is the point where I ran into issues. When exporting for the web template via the UI all is fine and well but when using the CLI it seems like the export template doesn't get filled in as the html file contains a lot of $GODOT_... variables.
The command i'm using is the following (run from the the web project root, nog godot project root)
godot --headless --path "./frontend/" --export-debug "Web" ../frontend-export/game
My project layout is as follows (additional explanations in brackets):```filetree
. (where i'm running the export command from)
├── backend (backend server, not relevant for exporting)
├── frontend (godot project)
│ ├── export_presets.cfg
│ ├── project.godot
│ └── (the rest of the project files)
└── frontend-export (where i want the export to end up)
In case it's relevant:
- OS: linux.
- Godot version: `4.2.1.stable.arch_linux`
- `export_presets.cfg` included in next message.