Honey Village: six model builds + hub frontend, Dockerized for Dokploy

This commit is contained in:
2026-07-15 10:50:12 -04:00
commit 67253bded5
523 changed files with 58879 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { execFileSync } from 'node:child_process';
import { readdirSync, mkdirSync } from 'node:fs';
import { resolve } from 'node:path';
const root = resolve(import.meta.dirname, '..');
const sourceDir = resolve(root, 'public/maps/source');
const outDir = resolve(root, 'public/maps');
const tiled = process.env.TILED ?? '/Applications/Tiled.app/Contents/MacOS/Tiled';
mkdirSync(outDir, { recursive: true });
for (const file of readdirSync(sourceDir).filter((name) => name.endsWith('.tmx'))) {
execFileSync(tiled, ['--export-map', 'json', resolve(sourceDir, file), resolve(outDir, file.replace('.tmx', '.json'))], { stdio: 'inherit' });
}
console.log('Exported 10 Tiled JSON maps.');