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