mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-15 19:22:31 +08:00
fix auto start
This commit is contained in:
parent
d731c21804
commit
95f48a5d4d
|
@ -38,7 +38,7 @@ export async function enableAutoRun(): Promise<void> {
|
|||
if (process.platform === 'win32') {
|
||||
const execPromise = promisify(exec)
|
||||
await execPromise(
|
||||
`C:\\\\Windows\\System32\\schtasks.exe /create /tn "${appName}" /tr "${exePath()}" /sc onlogon /delay 0000:03 /rl HIGHEST /it /f`
|
||||
`C:\\\\Windows\\System32\\schtasks.exe /create /tn "${appName}" /tr "\\"${exePath()}\\"" /sc onlogon /delay 0000:03 /rl HIGHEST /it /f`
|
||||
)
|
||||
}
|
||||
if (process.platform === 'darwin') {
|
||||
|
|
Loading…
Reference in New Issue
Block a user