From 454ce10a9d455cdde9f8fbd57ad1508fb82e75f0 Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Sun, 4 Aug 2024 10:15:23 +0800 Subject: [PATCH] Update manager.ts --- src/main/core/manager.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/core/manager.ts b/src/main/core/manager.ts index 29a5f32..8191655 100644 --- a/src/main/core/manager.ts +++ b/src/main/core/manager.ts @@ -17,9 +17,6 @@ export function startCore(): void { generateProfile() checkProfile() stopCore() - if (process.platform !== 'win32') { - execSync(`chmod +x ${corePath}`) - } child = spawn(corePath, ['-d', mihomoWorkDir()]) child.stdout?.on('data', (data) => { fs.writeFileSync( @@ -52,9 +49,5 @@ export function restartCore(): void { export function checkProfile(): void { const corePath = mihomoCorePath(getAppConfig().core ?? 'mihomo') - if (process.platform !== 'win32') { - execSync(`chmod +x ${corePath}`) - } - execFileSync(corePath, ['-t', '-f', mihomoWorkConfigPath(), '-d', mihomoTestDir()]) }