From 3d2983ffb14436f1aeac8f5fee388785fa02b8e0 Mon Sep 17 00:00:00 2001 From: codecalm Date: Thu, 25 Aug 2022 23:04:34 +0200 Subject: [PATCH] build fix --- gulpfile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 118903653..7a0439696 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -101,7 +101,11 @@ async function asyncForEach(array, callback) { const svgToPng = async (filePath, destination) => { filePath = path.join(__dirname, filePath) - await cp.exec(`rsvg-convert -h 240 ${filePath} > ${destination}`) + await new Promise((resolve, reject) => { + cp.exec(`rsvg-convert -h 240 ${filePath} > ${destination}`, (error, stdout, stderr) => { + error ? reject() : resolve() + }) + }) } const createScreenshot = async (filePath) => {