Skip to content

Commit

Permalink
fix: assets creation not using path join (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel authored Jul 7, 2024
1 parent cf6dc5c commit a8e3845
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions create.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const VERSION = "2.6.3";
import cp from "child_process";
import fs from "fs";
import https from "https";
import path from "path";

const kaplayRepo = `https://raw.githubusercontent.com/marklovers/kaplay/master`

Expand Down Expand Up @@ -412,14 +413,14 @@ for (const match of startCode.matchAll(assetsRegex)) {
info(`- downloading sprite "${name}"`);
await download(
`${kaplayRepo}/${url}`,
`www${url}`,
path.join("www", url),
);
}
else {
info(`- downloading ${type.toLowerCase()} "${name}"`);
await download(
`${kaplayRepo}/${url}`,
`www${url}`,
path.join("www", url),
)
}
}
Expand Down

0 comments on commit a8e3845

Please sign in to comment.