godot: CLI export fails
Godot version:
Godot 3.0 stable
OS/device including version:
Linux Mint 18.3 Sylvia 64-bit
Issue description:
Trying to export via command line throws following error:
ERROR: copy: Condition ' err ' is true. returned: err
At: core/os/dir_access.cpp:313.
Steps to reproduce: Just create a bare minimum project, I used one just with a single node in a scene, nothing else. Try to export via command line.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 8
- Comments: 44 (27 by maintainers)
I’ll rework the mess that is our command line interface eventually.
The error occurs even when no target file exists. And the target file never gets generated from command line. So it is a valid bug.
I confirmed with 3.0.2 stable release:
I also confirmed that it exports fine from GUI editor menu.
I was able to export from my continuous delivery server. (gocd)
Hope this can help someone else.
Edit: typos.
Thanks @fire, finally got the headless linux binary cli export to work. The bit that finally did it for me was the fact that ~/.local/share/godot/templates/{version} has to match the version.txt in the export template’s version.txt.
After that the export worked on the project like a charm.
@akien-mga actually “Linux/X11” is now the name when you add a new Linux export preset. Before 3.x it was “Linux X11” indeed though.
But other than that, it is also possible to rename it now, so it could be anything.
I confirm, using the command line options from the “normal” version of Godot also fails:
And just to be sure, there is no
/tmp/foo
file :So the only way to export is to go through the GUI interface to export.