progress!
This commit is contained in:
@ -24,15 +24,15 @@ const execPico = async (args: string[]) => {
|
||||
}
|
||||
|
||||
export const pico8 = {
|
||||
async export(fileIn: string, fileOut: string) {
|
||||
async export(filesIn: string[], fileOut: string) {
|
||||
try {
|
||||
// console.log((await cmd("ls", ["-la", "/app/pico8"]) as any).stdout)
|
||||
return await execPico([fileIn, "-export", fileOut]);
|
||||
return await execPico([...filesIn, "-export", fileOut]);
|
||||
} catch (err) {
|
||||
console.log("CAUGHT ERROR", err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// const result = await pico8.export("/home/dylan/.lexaloffle/pico-8/carts/my-pico-project/mygame.p8", "/home/dylan/repos/picobook/sample.p8.png");
|
||||
// const result = await pico8.export(["/home/dylan/.lexaloffle/pico-8/carts/my-pico-project/mygame.p8","/home/dylan/.lexaloffle/pico-8/carts/my-pico-project/secondcart.p8"], "/home/dylan/repos/picobook/sample2.js");
|
||||
// console.log(result);
|
Reference in New Issue
Block a user