新增 quickcommand.wakeUtools

This commit is contained in:
fofolee
2022-04-19 15:34:14 +08:00
parent 9d21495faa
commit 010353f0bb
2 changed files with 14 additions and 0 deletions

View File

@@ -162,6 +162,11 @@ window.quickcommand = {
let local = path.join(root, require('crypto').createHash('md5').update(url).digest('hex'))
if (forceUpdate || !fs.existsSync(local)) await this.downloadFile(remote, local)
return require(local)
},
// 唤醒 uTools
wakeUtools: function() {
child_process.exec(process.execPath, () => {})
}
}