mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-24 20:14:29 -04:00
fix: add sub-directory in bitmaps generation path
This commit is contained in:
parent
359be79556
commit
752b8730b7
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
import path from "path";
|
||||
import { SVGHandler, BitmapsGenerator } from "#root/modules";
|
||||
|
||||
interface BuildBitmapsArgs {
|
||||
|
@ -11,8 +12,9 @@ const buildBitmaps = async (args: BuildBitmapsArgs) => {
|
|||
console.log("Generating bitmaps for", args.themeName);
|
||||
|
||||
const svg = new SVGHandler.SvgDirectoryParser(args.dir);
|
||||
const bitmapsDir = path.resolve(args.out, args.themeName);
|
||||
|
||||
const png = new BitmapsGenerator(args.out);
|
||||
const png = new BitmapsGenerator(bitmapsDir);
|
||||
const browser = await png.getBrowser();
|
||||
|
||||
for (let { key, content } of svg.getStatic()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue