fix(script): 创建文件夹

This commit is contained in:
msojocs 2022-01-27 00:46:08 +08:00
parent 40ea14f4e3
commit 35f4dcd1bc

View File

@ -42,6 +42,9 @@ const extract = function (localPath) {
console.info(`Extracting ${localPath}`);
return new Promise((resolve, reject) => {
try {
fs.mkdirSync(path.resolve(__dirname, "../tmp"));
} catch (error) {}
let extractPath = path.resolve(
__dirname,
`../tmp/${path.basename(localPath)}`