mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-03 21:52:11 +08:00
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:
@@ -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.
|
||||
|
||||
@@ -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")]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user