refactor: replace remaining clash meta naming with mihomo

Doc comment, generated bindings and the prebuild sidecar helpers stop
referring to the legacy Clash Meta name; installer legacy-process
cleanup keeps the old executable names on purpose.
This commit is contained in:
Tunglies
2026-11-02 21:46:56 +08:00
parent 50a4e5f00a
commit 7b857bfdce
3 changed files with 9 additions and 10 deletions
+6 -7
View File
@@ -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.
+1 -1
View File
@@ -39,7 +39,7 @@ pub struct IVerge {
pub traffic_graph: Option<bool>,
/// show memory info (only for Clash Meta)
/// show memory info (only for Mihomo)
pub enable_memory_usage: Option<bool>,
#[serde(skip_serializing_if = "Option::is_none")]
+2 -2
View File
@@ -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