Clash.Meta-windows-amd64-compatible
This commit is contained in:
@@ -1041,14 +1041,20 @@ namespace clashN.Forms
|
||||
CloseCore();
|
||||
|
||||
string fileName = Utils.GetPath(Utils.GetDownloadFileName(msg));
|
||||
FileManager.ZipExtractToFile(fileName, config.ignoreGeoUpdateCore ? "geo" : "");
|
||||
if (FileManager.ZipExtractToFile(fileName, config.ignoreGeoUpdateCore ? "geo" : "") == false)
|
||||
{
|
||||
Global.reloadCore = true;
|
||||
_ = LoadCore();
|
||||
AppendText(false, ResUI.MsgUpdateCoreCoreFailed);
|
||||
}
|
||||
else
|
||||
{
|
||||
AppendText(false, ResUI.MsgUpdateCoreCoreSuccessfullyMore);
|
||||
|
||||
AppendText(false, ResUI.MsgUpdateCoreCoreSuccessfullyMore);
|
||||
|
||||
Global.reloadCore = true;
|
||||
_ = LoadCore();
|
||||
|
||||
AppendText(false, ResUI.MsgUpdateCoreCoreSuccessfully);
|
||||
Global.reloadCore = true;
|
||||
_ = LoadCore();
|
||||
AppendText(false, ResUI.MsgUpdateCoreCoreSuccessfully);
|
||||
}
|
||||
}
|
||||
};
|
||||
(new UpdateHandle()).CheckUpdateCore(type, config, _updateUI);
|
||||
|
||||
@@ -82,12 +82,12 @@ namespace clashN.Handler
|
||||
coreInfos.Add(new CoreInfo
|
||||
{
|
||||
coreType = ECoreType.clash_meta,
|
||||
coreExes = new List<string> { "Clash.Meta-windows-amd64v1", "Clash.Meta-windows-amd64", "Clash.Meta-windows-386", "Clash.Meta", "clash" },
|
||||
coreExes = new List<string> { "Clash.Meta-windows-amd64-compatible", "Clash.Meta-windows-amd64", "Clash.Meta-windows-386", "Clash.Meta", "clash" },
|
||||
arguments = "-f config.yaml",
|
||||
coreUrl = Global.clashMetaCoreUrl,
|
||||
coreLatestUrl = Global.clashMetaCoreUrl + "/latest",
|
||||
coreDownloadUrl32 = Global.clashMetaCoreUrl + "/download/{0}/Clash.Meta-windows-386-{0}.zip",
|
||||
coreDownloadUrl64 = Global.clashMetaCoreUrl + "/download/{0}/Clash.Meta-windows-amd64V1-{0}.zip",
|
||||
coreDownloadUrl64 = Global.clashMetaCoreUrl + "/download/{0}/Clash.Meta-windows-amd64-compatible-{0}.zip",
|
||||
match = "Clash Meta"
|
||||
});
|
||||
|
||||
|
||||
9
clashN/clashN/Resx/ResUI.Designer.cs
generated
9
clashN/clashN/Resx/ResUI.Designer.cs
generated
@@ -600,6 +600,15 @@ namespace clashN.Resx {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Update Core failed, see the log for details 的本地化字符串。
|
||||
/// </summary>
|
||||
internal static string MsgUpdateCoreCoreFailed {
|
||||
get {
|
||||
return ResourceManager.GetString("MsgUpdateCoreCoreFailed", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Update Core successfully 的本地化字符串。
|
||||
/// </summary>
|
||||
|
||||
@@ -376,4 +376,7 @@
|
||||
<data name="MsgSkipSubscriptionUpdate" xml:space="preserve">
|
||||
<value>Skip this subscription update</value>
|
||||
</data>
|
||||
<data name="MsgUpdateCoreCoreFailed" xml:space="preserve">
|
||||
<value>Update Core failed, see the log for details</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -376,4 +376,7 @@
|
||||
<data name="MsgSkipSubscriptionUpdate" xml:space="preserve">
|
||||
<value>跳过此订阅更新</value>
|
||||
</data>
|
||||
<data name="MsgUpdateCoreCoreFailed" xml:space="preserve">
|
||||
<value>更新Core失败,详情见日志</value>
|
||||
</data>
|
||||
</root>
|
||||
Reference in New Issue
Block a user