mirror of
https://github.com/2dust/v2rayN.git
synced 2025-12-24 15:52:42 +00:00
Bug fix
Some checks are pending
release Linux / build (Release) (push) Waiting to run
release Linux / rpm (push) Blocked by required conditions
release macOS / build (Release) (push) Waiting to run
release Windows desktop (Avalonia UI) / build (Release) (push) Waiting to run
release Windows / build (Release) (push) Waiting to run
Some checks are pending
release Linux / build (Release) (push) Waiting to run
release Linux / rpm (push) Blocked by required conditions
release macOS / build (Release) (push) Waiting to run
release Windows desktop (Avalonia UI) / build (Release) (push) Waiting to run
release Windows / build (Release) (push) Waiting to run
https://github.com/2dust/v2rayN/issues/8515
This commit is contained in:
parent
28f30d7e97
commit
5478c90180
1 changed files with 31 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ public sealed class CoreInfoManager
|
||||||
new CoreInfo
|
new CoreInfo
|
||||||
{
|
{
|
||||||
CoreType = ECoreType.mihomo,
|
CoreType = ECoreType.mihomo,
|
||||||
CoreExes = ["mihomo-windows-amd64-v1", "mihomo-windows-amd64-compatible", "mihomo-windows-amd64", "mihomo-linux-amd64", "clash", "mihomo"],
|
CoreExes = GetMihomoCoreExes(),
|
||||||
Arguments = "-f {0}" + PortableMode(),
|
Arguments = "-f {0}" + PortableMode(),
|
||||||
Url = GetCoreUrl(ECoreType.mihomo),
|
Url = GetCoreUrl(ECoreType.mihomo),
|
||||||
ReleaseApiUrl = urlMihomo.Replace(Global.GithubUrl, Global.GithubApiUrl),
|
ReleaseApiUrl = urlMihomo.Replace(Global.GithubUrl, Global.GithubApiUrl),
|
||||||
|
|
@ -248,4 +248,34 @@ public sealed class CoreInfoManager
|
||||||
{
|
{
|
||||||
return $"{Global.GithubUrl}/{Global.CoreUrls[eCoreType]}/releases";
|
return $"{Global.GithubUrl}/{Global.CoreUrls[eCoreType]}/releases";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static List<string>? GetMihomoCoreExes()
|
||||||
|
{
|
||||||
|
var names = new List<string>();
|
||||||
|
|
||||||
|
if (Utils.IsWindows())
|
||||||
|
{
|
||||||
|
names.Add("mihomo-windows-amd64-v1");
|
||||||
|
names.Add("mihomo-windows-amd64-compatible");
|
||||||
|
names.Add("mihomo-windows-amd64");
|
||||||
|
names.Add("mihomo-windows-arm64");
|
||||||
|
}
|
||||||
|
else if (Utils.IsLinux())
|
||||||
|
{
|
||||||
|
names.Add("mihomo-linux-amd64-v1");
|
||||||
|
names.Add("mihomo-linux-amd64");
|
||||||
|
names.Add("mihomo-linux-arm64");
|
||||||
|
}
|
||||||
|
else if (Utils.IsMacOS())
|
||||||
|
{
|
||||||
|
names.Add("mihomo-darwin-amd64-v1");
|
||||||
|
names.Add("mihomo-darwin-amd64");
|
||||||
|
names.Add("mihomo-darwin-arm64");
|
||||||
|
}
|
||||||
|
|
||||||
|
names.Add("clash");
|
||||||
|
names.Add("mihomo");
|
||||||
|
|
||||||
|
return names;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue