Find a full install in host.factorio_directory instead of a setting

Per review, drop host.factorio_graphics_directory. findVersion takes a
headless option that filters installs by build, telling them apart by
data/base/graphics/icons. When the instance runs the headless build the
export looks for a full install of the same major.minor version in the
host's factorio directory. Server startup is unchanged.

If none is found the export still runs, and the reason is included in
the missing icons warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bbassieandClaude Opus 5.5 committed 2026-11-01 20:53:05 +00:00
1 parent 46c6153201
commit 37d74ca2a6
10 files changed
+132 -65

No files matched your search

+1 -1
View File
@@ -1479,7 +1479,7 @@ end`.replace(/\r?\n/g, " ");
this.logger.info("Exporting data .....");
await this.syncMods();
let zip = await exportData(this.server, this._host.config.get("host.factorio_graphics_directory"));
let zip = await exportData(this.server);
let url = new URL(this._host.config.get("host.controller_url"));
url.pathname += "api/upload-export";