From ace28bc323b2c1c75aca3f447d4acc937a24b0b4 Mon Sep 17 00:00:00 2001 From: dylan <> Date: Tue, 26 Mar 2024 20:40:16 -0700 Subject: [PATCH] go back --- Dockerfile | 2 +- src/server/api/release.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e05198d..16a85e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ WORKDIR /app # intentionally here only for temporary cache-busting test # COPY ./client ./client -COPY ./pico8/pico8 /usr/bin/ +COPY ./pico8 ./pico8 # RUN echo "chmoding pico8" # RUN chmod +x ./usr/bin/pico8 diff --git a/src/server/api/release.ts b/src/server/api/release.ts index 48229cb..3215dc2 100644 --- a/src/server/api/release.ts +++ b/src/server/api/release.ts @@ -58,7 +58,7 @@ const handler = async ({payload}: FirRouteInput) => { console.log("main exists: ", fs.existsSync(path.join(repoPath, manifest.main))); // const {stdout} = await execa("ls", ["-la", picoDirPath], {shell: true}); // console.log(stdout); - await execa("pico8", [path.join(repoPath, manifest.main), "-export", path.join(repoPath, "result.js")]); + await execa(picoBinPath, [path.join(repoPath, manifest.main), "-export", path.join(repoPath, "result.js")]); // await execa(picoBinPath, [path.join(repoPath, manifest.main), "-export", path.join(repoPath, "result.png")]); const js = await fs.promises.readFile(path.join(repoPath, "result.js"), "utf8"); // const png = Buffer.from(await fs.promises.readFile(path.join(repoPath, "result.png"))).toString("base64");