cleanup, add README

This commit is contained in:
Brian Beck 2025-11-12 20:00:14 -08:00
parent ee6ff28af5
commit 2a7af04023
22 changed files with 46 additions and 17 deletions

View file

@ -1,11 +1,11 @@
import fs from "node:fs/promises";
import unzipper from "unzipper";
import { normalize } from "@/src/stringUtils";
import { normalizePath } from "@/src/stringUtils";
import manifest from "@/public/manifest.json";
import path from "node:path";
const inputBaseDir = "rawGameData/base";
const outputBaseDir = "public/base";
const outputBaseDir = "docs/base";
const archives = new Map<string, unzipper.CentralDirectory>();
@ -23,7 +23,7 @@ async function buildExtractedGameDataFolder() {
archives.set(source, archive);
}
const entry = archive.files.find(
(entry) => normalize(entry.path) === filePath
(entry) => normalizePath(entry.path) === filePath
);
const inFile = `${inputBaseDir}/${source}:${filePath}`;
if (!entry) {