Fix app build script on macOS

This commit is contained in:
hensm
2020-09-07 15:16:11 +01:00
parent ebdf0873f7
commit 1a9f9b9c84

View File

@@ -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);
}
/**