From daea6ab9120f9d56b972926f9fbe0edee6849f86 Mon Sep 17 00:00:00 2001 From: dylan <> Date: Tue, 26 Mar 2024 20:01:43 -0700 Subject: [PATCH] try shell: true --- src/server/api/release.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/release.ts b/src/server/api/release.ts index 6c196cd..05b0091 100644 --- a/src/server/api/release.ts +++ b/src/server/api/release.ts @@ -56,7 +56,7 @@ const handler = async ({payload}: FirRouteInput) => { console.log("pico exists: ", fs.existsSync(picoBinPath)); console.log("manifest exists: ", fs.existsSync(path.join(repoPath, "picobook.json"))); console.log("main exists: ", fs.existsSync(path.join(repoPath, manifest.main))); - 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.js")], {shell: true}); // 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");