add clash premium core

This commit is contained in:
2dust
2022-12-05 20:31:53 +08:00
parent fc43fde554
commit 0b5d41370c
6 changed files with 17 additions and 4 deletions

View File

@@ -100,7 +100,7 @@
"" ""
}; };
public static readonly List<string> coreTypes = new List<string> { "clash", "clash_meta" }; public static readonly List<string> coreTypes = new List<string> { "clash", "clash_premium", "clash_meta", };
public static readonly List<string> allowSelectType = new List<string> { "selector", "urltest", "loadbalance", "fallback" }; public static readonly List<string> allowSelectType = new List<string> { "selector", "urltest", "loadbalance", "fallback" };

View File

@@ -91,6 +91,18 @@ namespace clashN.Handler
match = "Clash Meta" match = "Clash Meta"
}); });
coreInfos.Add(new CoreInfo
{
coreType = ECoreType.clash_premium,
coreExes = new List<string> { "clash-windows-amd64-v3", "clash-windows-amd64", "clash-windows-386", "clash" },
arguments = "-f config.yaml",
coreUrl = Global.clashCoreUrl,
coreLatestUrl = Global.clashCoreUrl + "/latest",
coreDownloadUrl32 = Global.clashCoreUrl + "/download/{0}/clash-windows-386-{0}.zip",
coreDownloadUrl64 = Global.clashCoreUrl + "/download/{0}/clash-windows-amd64-{0}.zip",
match = "Clash"
});
} }
} }
} }

View File

@@ -5,6 +5,7 @@ namespace clashN.Mode
{ {
clash = 1, clash = 1,
clash_meta = 2, clash_meta = 2,
clash_premium = 3,
clashN = 99 clashN = 99
} }
} }

View File

@@ -1655,7 +1655,7 @@ namespace clashN.Resx {
} }
/// <summary> /// <summary>
/// 查找类似 To enable tun mode, please use Clash.Meta Core first; if you must use Clash Core, you need to download Clash Premium Core overlay 的本地化字符串。 /// 查找类似 To enable tun mode, please use Clash.Meta Core first; or use Clash Premium Core 的本地化字符串。
/// </summary> /// </summary>
public static string TunModeCoreTip { public static string TunModeCoreTip {
get { get {

View File

@@ -602,7 +602,7 @@
<value>The ping of current service: {0}</value> <value>The ping of current service: {0}</value>
</data> </data>
<data name="TunModeCoreTip" xml:space="preserve"> <data name="TunModeCoreTip" xml:space="preserve">
<value>To enable tun mode, please use Clash.Meta Core first; if you must use Clash Core, you need to download Clash Premium Core overlay</value> <value>To enable tun mode, please use Clash.Meta Core first; or use Clash Premium Core</value>
</data> </data>
<data name="TbSave" xml:space="preserve"> <data name="TbSave" xml:space="preserve">
<value>Save</value> <value>Save</value>

View File

@@ -602,7 +602,7 @@
<value>当前服务的真连接延迟: {0}</value> <value>当前服务的真连接延迟: {0}</value>
</data> </data>
<data name="TunModeCoreTip" xml:space="preserve"> <data name="TunModeCoreTip" xml:space="preserve">
<value>开启tun模式请优先使用Clash.Meta Core; 如一定要使用Clash Core, 需要下载Clash Premium Core覆盖</value> <value>开启tun模式请优先使用Clash.Meta Core; 或者使用Clash Premium Core</value>
</data> </data>
<data name="TbSave" xml:space="preserve"> <data name="TbSave" xml:space="preserve">
<value>保存</value> <value>保存</value>