mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
fix(script): 创建文件夹
This commit is contained in:
parent
40ea14f4e3
commit
35f4dcd1bc
@ -42,6 +42,9 @@ const extract = function (localPath) {
|
|||||||
console.info(`Extracting ${localPath}`);
|
console.info(`Extracting ${localPath}`);
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
try {
|
||||||
|
fs.mkdirSync(path.resolve(__dirname, "../tmp"));
|
||||||
|
} catch (error) {}
|
||||||
let extractPath = path.resolve(
|
let extractPath = path.resolve(
|
||||||
__dirname,
|
__dirname,
|
||||||
`../tmp/${path.basename(localPath)}`
|
`../tmp/${path.basename(localPath)}`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user