diff --git a/Dockerfile b/Dockerfile index 1afe4cf..e90e7bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,8 @@ RUN apk add --update python3 py3-pip RUN python3 -m ensurepip RUN pip3 install --no-cache --upgrade pip setuptools +COPY ./data ./data + # Copies stuff to cache for install COPY ./package.json ./package-lock.json tsconfig.json ./ diff --git a/pico8.dat b/data/pico8.dat similarity index 100% rename from pico8.dat rename to data/pico8.dat diff --git a/src/server/util/carts.ts b/src/server/util/carts.ts index a06a822..44151eb 100644 --- a/src/server/util/carts.ts +++ b/src/server/util/carts.ts @@ -9,7 +9,7 @@ const outputDirPath = path.resolve(__dirname, "..", "..", "..", "output"); const getRom = async (inputFile: string) => { const uuid = randomUUID(); const dir = path.join(outputDirPath, uuid); - const outputFile = path.join(dir, inputFile+".js"); + const outputFile = path.join(dir, "output.js"); await shrinko8({ inputFile, diff --git a/src/server/util/shrinko8.ts b/src/server/util/shrinko8.ts index bf389e8..9da9871 100644 --- a/src/server/util/shrinko8.ts +++ b/src/server/util/shrinko8.ts @@ -6,7 +6,7 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url)); const shrinko8DirPath = path.resolve(__dirname, "../shrinko8"); const shrinko8Path = path.resolve(shrinko8DirPath, "shrinko8.py"); -const pico8DatPath = path.resolve(__dirname, "../../pico8.dat"); +const pico8DatPath = path.resolve(__dirname, "../../../data/pico8.dat"); export const shrinko8 = async (props: { inputFile: string;