mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-28 22:14:21 -04:00
33 lines
790 B
TypeScript
33 lines
790 B
TypeScript
import chalk from "chalk";
|
|
import { renderCursors, spinner } from "common";
|
|
|
|
import { generateConfigs } from "./utils/schema";
|
|
import { colorSchemes } from "./color";
|
|
import { bitmapsPath } from "./config";
|
|
|
|
const main = async () => {
|
|
const prefix = "Bibata-Round";
|
|
|
|
const configs = generateConfigs(colorSchemes, prefix);
|
|
|
|
try {
|
|
for (let [schema] of Object.entries(configs)) {
|
|
spinner.text = `Generating ${chalk.magentaBright(
|
|
`${prefix}-${schema}`
|
|
)} bitmaps ...`;
|
|
spinner.start();
|
|
|
|
await renderCursors(configs[schema]);
|
|
|
|
spinner.succeed();
|
|
}
|
|
console.log(`🎉 Bitmaps stored at ${chalk.greenBright(bitmapsPath)}`);
|
|
} catch (error) {
|
|
spinner.fail();
|
|
console.error(error);
|
|
} finally {
|
|
process.exit(0);
|
|
}
|
|
};
|
|
|
|
main();
|