mirror of
https://github.com/Melorise/cp-nix.git
synced 2026-11-07 14:39:34 +00:00
16 lines
444 B
Diff
16 lines
444 B
Diff
diff --git a/src/main/utils/dirs.ts b/src/main/utils/dirs.ts
|
|
index 0771ca0..4ea1cb6 100644
|
|
--- a/src/main/utils/dirs.ts
|
|
+++ b/src/main/utils/dirs.ts
|
|
@@ -86,6 +86,10 @@ export function mihomoCoreDir(): string {
|
|
}
|
|
|
|
export function mihomoCorePath(core: string): string {
|
|
+ if (process.platform === 'linux') {
|
|
+ core = 'mihomo'
|
|
+ }
|
|
+
|
|
const isWin = process.platform === 'win32'
|
|
// 处理 Smart 内核
|
|
if (core === 'mihomo-smart') {
|