Fix script to make directories recursively (#3027)
This commit is contained in:
@@ -9,6 +9,6 @@ exports.default = async function beforePack(context) {
|
|||||||
// So we have to manually create it first
|
// So we have to manually create it first
|
||||||
var dir = path.join(context.outDir, context.packager.appInfo.version)
|
var dir = path.join(context.outDir, context.packager.appInfo.version)
|
||||||
if (!fs.existsSync(dir)){
|
if (!fs.existsSync(dir)){
|
||||||
fs.mkdirSync(dir);
|
fs.mkdirSync(dir, {recursive: true});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user