mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 22:51:25 +08:00
MacOS 下 wakeUtools 调整
This commit is contained in:
parent
09d254cd2a
commit
f80ce0ddb6
@ -166,7 +166,10 @@ window.quickcommand = {
|
|||||||
|
|
||||||
// 唤醒 uTools
|
// 唤醒 uTools
|
||||||
wakeUtools: function() {
|
wakeUtools: function() {
|
||||||
child_process.exec(process.execPath, () => {})
|
let uToolsPath = utools.isMacOs() ?
|
||||||
|
process.execPath.replace(/\/Frameworks\/.*/, "/MacOS/uTools") :
|
||||||
|
process.execPath
|
||||||
|
child_process.exec(uToolsPath, () => {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user