Implement hosts downloading needed mods

Download and cache needed mods to run instance mod packs on instance
startup.  To avoid opening too many download streams at once only one
mod is downloaded at a time.
This commit is contained in:
Hornwitser committed 2023-12-03 20:15:07 +01:00
1 parent 853866492b
commit a2eb98ac93
5 files changed
+114 -15

No files matched your search

+2 -8
View File
@@ -21,6 +21,7 @@ ControllerGroup.define({
name: "mods_directory",
title: "Mods Directory",
description: "Path to directory where mods shared with the cluster are stored.",
restartRequired: true,
type: "string",
initial_value: "mods",
});
@@ -202,16 +203,10 @@ HostGroup.define({
name: "mods_directory",
title: "Mods Directory",
description: "Path to directory where mods for instances are cached.",
restartRequired: true,
type: "string",
initial_value: "mods",
});
HostGroup.define({
name: "mods_directory_is_shared",
title: "Mods Directory is Shared",
description: "True if the mods directory is shared with the controller.",
type: "boolean",
initial_value: true,
});
HostGroup.define({
name: "instances_directory",
description: "Path to directory to store instances in.",
@@ -264,7 +259,6 @@ export class HostConfig extends classes.Config {
get(name: "host.id"): number;
get(name: "host.factorio_directory"): string;
get(name: "host.mods_directory"): string;
get(name: "host.mods_directory_is_shared"): boolean;
get(name: "host.instances_directory"): string;
get(name: "host.controller_url"): string;
get(name: "host.controller_token"): string;