mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-17 00:44:35 +08:00
新增 quickcommand.wakeUtools
This commit is contained in:
@@ -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, () => {})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user