From d6ce9151619814a456f37c0e554b9bb7a7de6565 Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Mon, 21 Oct 2024 17:20:12 +0800 Subject: [PATCH] fix auto start --- src/main/sys/autoRun.ts | 11 ++++++----- src/main/sys/misc.ts | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) 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