diff options
| author | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2026-04-25 23:01:27 +0100 |
|---|---|---|
| committer | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2026-04-25 23:01:27 +0100 |
| commit | 35a632b782a95c2d6f76672b2c66eac04b638b1d (patch) | |
| tree | 1dc13c3a64d76ede89e342a5e052cd253b583c6b | |
| parent | 8fc4ec939706d9b67dbeca236b7d1ce2e9dac652 (diff) | |
| download | NuclearOptionDedicatedServerDocker-35a632b782a95c2d6f76672b2c66eac04b638b1d.tar NuclearOptionDedicatedServerDocker-35a632b782a95c2d6f76672b2c66eac04b638b1d.tar.gz NuclearOptionDedicatedServerDocker-35a632b782a95c2d6f76672b2c66eac04b638b1d.tar.bz2 NuclearOptionDedicatedServerDocker-35a632b782a95c2d6f76672b2c66eac04b638b1d.tar.xz NuclearOptionDedicatedServerDocker-35a632b782a95c2d6f76672b2c66eac04b638b1d.zip | |
Move downloaded workshop items to the /app/Mods directory
Co-authored-by: Copilot <copilot@github.com>
| -rw-r--r-- | entrypoint.mjs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/entrypoint.mjs b/entrypoint.mjs index 968c760..c4f6cf4 100644 --- a/entrypoint.mjs +++ b/entrypoint.mjs @@ -96,6 +96,20 @@ if (process.env.WORKSHOP_ITEMS) { { stdio: "inherit" }, ); } + + // Move downloaded workshop items to the /app/Mods directory + const steamWorkshopPath = `/home/steam/Steam/steamapps/workshop/content/3930080`; + const modsPath = `/app/Mods`; + + for (const itemId of itemIds) { + const sourcePath = `${steamWorkshopPath}/${itemId}`; + if (existsSync(sourcePath)) { + console.log(`Copying workshop item ${itemId} to ${modsPath}`); + cpSync(sourcePath, `${modsPath}/${itemId}`, { recursive: true }); + } else { + console.warn(`Workshop item ${itemId} not found at ${sourcePath}`); + } + } } // Run the server |
