export
Export project presets.
fgvm export [-o|--output <path>] [-a|--archive] [-j|--json] [--manifest <path>] [<...strings>] prepares the matching editor and export templates, imports the project once, and exports every named preset in export_presets.cfg in declaration order.
- Without
--output, each preset's configuredexport_pathis honored. A preset with a blank path receives an isolated fallback beneathdist/<preset>/. Platforms unknown to fgvm remain usable when they declare an explicit path; Godot is responsible for validating the platform and its SDK requirements. - A directory reached through a configured
export_pathbelongs to the project, so fgvm writes this run's files into it and overwrites only the files it produces. Anything else is left alone, including output from an earlier export that the current run no longer produces. Export beneathdist/or--outputwhen a run must leave nothing stale behind. A macOS.appbundle is the export itself rather than a directory shared with it, so it is still replaced whole. --output <path>gives every preset an isolated directory beneath that root and atomically replaces those directories after successful exports, preventing stale files from an earlier run. Because fgvm must choose a valid file name, this mode supports Godot's built-in Windows Desktop, Linux/Linux/X11, macOS, Web, Android, and iOS platform names.--archiveuses Godot's native--export-packmode to produce one data-only ZIP pack per preset. It does not create a playable release archive; normal exports continue to use--export-release, and downstream delivery tools may package those playable outputs separately.- Every successful run writes a small versioned handoff manifest to
.fgvm-export.json;--manifest <path>changes that location. It contains a unique run ID, the resolved Godot version, and each preset's export mode, final path, and kind.--jsonor-jalso writes the same document to standard output and sends human-readable progress and errors to standard error, making it safe for scripts. - Options must appear before the optional version query, for example
fgvm export --archive --manifest artifacts.json 4.6 mono.