From 5dab2ab9ab25214aa41bec3d89e757fb99ca257e Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+KaizIqbal@users.noreply.github.com> Date: Sun, 16 Aug 2020 18:45:12 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=B8=20All=20cursors=20bitmaps=20genera?= =?UTF-8?q?te?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/round/src/index.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/packages/round/src/index.ts b/packages/round/src/index.ts index fd05bef1..c4439a84 100644 --- a/packages/round/src/index.ts +++ b/packages/round/src/index.ts @@ -6,13 +6,19 @@ import { renderCursors } from "shared"; (async () => { // Svg generate dir prefix - const prefix = "Bibata Round"; + const prefix = "Bibata-Round"; const configs = generateConfigs(colorSchemes, prefix, rawSvgsDir); - for (let [schema, { bitmapsDir }] of Object.entries(configs)) { - console.log(`\nGenerating ${prefix} ${schema} bitmaps`); - await renderCursors(configs[schema]); - console.log(`\nBitmaps stored at ${bitmapsDir}`); + try { + for (let [schema, { bitmapsDir }] of Object.entries(configs)) { + console.log(`\nGenerating ${prefix}-${schema} bitmaps..`); + await renderCursors(configs[schema]); + console.log(`\nBitmaps stored at ${bitmapsDir}`); + } + console.log("\n\nšŸŽ‰ Render Done."); + } catch (error) { + console.error(error); + } finally { + process.exit(0); } - console.log("\n\nšŸŽ‰ Render Done."); })();