Fix script to make directories recursively (#3027)

This commit is contained in:
Devin Binnie
2024-05-08 11:22:58 -04:00
committed by GitHub
parent b411437a15
commit 8beeb93aee

View File

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