go back
This commit is contained in:
		| @@ -15,7 +15,7 @@ WORKDIR /app | |||||||
| # intentionally here only for temporary cache-busting test | # intentionally here only for temporary cache-busting test | ||||||
| # COPY ./client ./client | # COPY ./client ./client | ||||||
|  |  | ||||||
| COPY ./pico8/pico8 /usr/bin/ | COPY ./pico8 ./pico8 | ||||||
| # RUN echo "chmoding pico8" | # RUN echo "chmoding pico8" | ||||||
| # RUN chmod +x ./usr/bin/pico8 | # RUN chmod +x ./usr/bin/pico8 | ||||||
|  |  | ||||||
|   | |||||||
| @@ -58,7 +58,7 @@ const handler = async ({payload}: FirRouteInput<typeof payloadT>) => { | |||||||
| 	console.log("main exists: ", fs.existsSync(path.join(repoPath, manifest.main))); | 	console.log("main exists: ", fs.existsSync(path.join(repoPath, manifest.main))); | ||||||
| 	// const {stdout} = await execa("ls", ["-la", picoDirPath], {shell: true}); | 	// const {stdout} = await execa("ls", ["-la", picoDirPath], {shell: true}); | ||||||
| 	// console.log(stdout); | 	// 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")]); | 	// 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 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"); | 	// const png = Buffer.from(await fs.promises.readFile(path.join(repoPath, "result.png"))).toString("base64"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 dylan
					dylan