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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,6 @@ exports.default = async function beforePack(context) {
// So we have to manually create it first
var dir = path.join(context.outDir, context.packager.appInfo.version)
if (!fs.existsSync(dir)){
fs.mkdirSync(dir);
fs.mkdirSync(dir, {recursive: true});
}
};