diff --git a/src/main/sys/autoRun.ts b/src/main/sys/autoRun.ts index fb4db8d..513261d 100644 --- a/src/main/sys/autoRun.ts +++ b/src/main/sys/autoRun.ts @@ -22,12 +22,12 @@ const taskXml = ` - IgnoreNew + Parallel false false false - true - true + false + false false false @@ -42,11 +42,12 @@ const taskXml = ` - "${exePath()}" + "${path.join(taskDir(), `mihomo-party-run.exe`)}" + "${exePath()}" - ` +` export async function checkAutoRun(): Promise { if (process.platform === 'win32') { diff --git a/src/main/sys/misc.ts b/src/main/sys/misc.ts index 855b4f2..07dc442 100644 --- a/src/main/sys/misc.ts +++ b/src/main/sys/misc.ts @@ -89,7 +89,7 @@ const elevateTaskXml = ` false false false - PT72H + PT0S 7