diff --git a/scripts/prebuild.mjs b/scripts/prebuild.mjs index 22dd96032..0230668ab 100644 --- a/scripts/prebuild.mjs +++ b/scripts/prebuild.mjs @@ -266,13 +266,13 @@ async function getLatestReleaseVersion() { } if (!META_MAP[`${platform}-${arch}`]) { - throw new Error(`clash meta unsupported platform "${platform}-${arch}"`) + throw new Error(`mihomo unsupported platform "${platform}-${arch}"`) } if (!META_ALPHA_MAP[`${platform}-${arch}`]) { - throw new Error(`clash meta alpha unsupported platform "${platform}-${arch}"`) + throw new Error(`mihomo alpha unsupported platform "${platform}-${arch}"`) } -function clashMetaAlpha() { +function mihomoAlpha() { const name = META_ALPHA_MAP[`${platform}-${arch}`] const isWin = platform === 'win32' const urlExt = isWin ? 'zip' : 'gz' @@ -285,7 +285,7 @@ function clashMetaAlpha() { } } -function clashMeta() { +function mihomo() { const name = META_MAP[`${platform}-${arch}`] const isWin = platform === 'win32' const urlExt = isWin ? 'zip' : 'gz' @@ -733,13 +733,12 @@ const tasks = [ { name: 'verge-mihomo-alpha', func: () => - getLatestAlphaVersion().then(() => resolveSidecar(clashMetaAlpha())), + getLatestAlphaVersion().then(() => resolveSidecar(mihomoAlpha())), retry: 5, }, { name: 'verge-mihomo', - func: () => - getLatestReleaseVersion().then(() => resolveSidecar(clashMeta())), + func: () => getLatestReleaseVersion().then(() => resolveSidecar(mihomo())), retry: 5, }, // After both sidecar tasks: it hashes what they downloaded. diff --git a/src-tauri/src/config/verge.rs b/src-tauri/src/config/verge.rs index ab7962ee8..d3b58dcf0 100644 --- a/src-tauri/src/config/verge.rs +++ b/src-tauri/src/config/verge.rs @@ -39,7 +39,7 @@ pub struct IVerge { pub traffic_graph: Option, - /// show memory info (only for Clash Meta) + /// show memory info (only for Mihomo) pub enable_memory_usage: Option, #[serde(skip_serializing_if = "Option::is_none")] diff --git a/src/services/bindings.ts b/src/services/bindings.ts index 4a1623bdc..073da075a 100644 --- a/src/services/bindings.ts +++ b/src/services/bindings.ts @@ -365,7 +365,7 @@ export type IVerge_Deserialize = { start_page?: string | null startup_script?: string | null traffic_graph?: boolean | null - /** show memory info (only for Clash Meta) */ + /** show memory info (only for Mihomo) */ enable_memory_usage?: boolean | null enable_group_icon?: boolean | null pause_render_traffic_stats_on_blur?: boolean | null @@ -455,7 +455,7 @@ export type IVerge_Serialize = { start_page: string | null startup_script: string | null traffic_graph: boolean | null - /** show memory info (only for Clash Meta) */ + /** show memory info (only for Mihomo) */ enable_memory_usage: boolean | null enable_group_icon?: boolean | null pause_render_traffic_stats_on_blur: boolean | null