mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-26 20:50:30 +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…
x
Reference in New Issue
Block a user