fix auto start

This commit is contained in:
pompurin404 2024-10-18 13:18:16 +08:00
parent d731c21804
commit 95f48a5d4d
No known key found for this signature in database

View File

@ -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') {