mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-19 09:45:24 -04:00
💬 Comments
This commit is contained in:
parent
64339a3ebc
commit
dc82fa38d9
1 changed files with 5 additions and 4 deletions
|
@ -1,20 +1,21 @@
|
||||||
|
import { renderCursors } from "shared";
|
||||||
|
|
||||||
import { generateConfigs } from "./helpers/schema";
|
import { generateConfigs } from "./helpers/schema";
|
||||||
import { colorSchemes, rawSvgsDir } from "./color";
|
import { colorSchemes, rawSvgsDir } from "./color";
|
||||||
|
|
||||||
// from shared package
|
|
||||||
import { renderCursors } from "shared";
|
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
// Svg generate dir prefix
|
|
||||||
const prefix = "Bibata-Round";
|
const prefix = "Bibata-Round";
|
||||||
const configs = generateConfigs(colorSchemes, prefix, rawSvgsDir);
|
const configs = generateConfigs(colorSchemes, prefix, rawSvgsDir);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for (let [schema, { bitmapsDir }] of Object.entries(configs)) {
|
for (let [schema, { bitmapsDir }] of Object.entries(configs)) {
|
||||||
console.log(`\nGenerating ${prefix}-${schema} bitmaps..`);
|
console.log(`\nGenerating ${prefix}-${schema} bitmaps..`);
|
||||||
|
|
||||||
await renderCursors(configs[schema]);
|
await renderCursors(configs[schema]);
|
||||||
|
|
||||||
console.log(`\nBitmaps stored at ${bitmapsDir}`);
|
console.log(`\nBitmaps stored at ${bitmapsDir}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("\n\n🎉 Render Done.");
|
console.log("\n\n🎉 Render Done.");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue