From 1a9f9b9c8422f57cf9e9c9ff1fcd065d65305451 Mon Sep 17 00:00:00 2001 From: hensm Date: Mon, 7 Sep 2020 15:16:11 +0100 Subject: [PATCH] Fix app build script on macOS --- app/bin/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/bin/build.js b/app/bin/build.js index 3a90cf3..9e94f4e 100644 --- a/app/bin/build.js +++ b/app/bin/build.js @@ -74,7 +74,7 @@ const spawnOptions = { * build directories, just in case. */ fs.removeSync(BUILD_PATH); -fs.removeSync(paths.DIST_PATH); +fs.removeSync(paths.DIST_PATH, { recursive: true }); fs.ensureDirSync(BUILD_PATH); fs.ensureDirSync(paths.DIST_PATH, { recursive: true }); @@ -231,7 +231,7 @@ NODE_PATH="${modulesDir}" node $(dirname $0)/src/main.js --__name $(basename $0) } // Remove build directory - //fs.removeSync(BUILD_PATH); + fs.removeSync(BUILD_PATH); } /**