mirror of https://github.com/2dust/v2rayN
In-app update alone package
parent
8be1730719
commit
9c7446f820
|
@ -437,6 +437,15 @@ namespace ServiceLib.Handler
|
||||||
{
|
{
|
||||||
if (Utils.IsWindows())
|
if (Utils.IsWindows())
|
||||||
{
|
{
|
||||||
|
//Check for standalone windows .Net version
|
||||||
|
if (coreInfo?.coreType == ECoreType.v2rayN
|
||||||
|
&& File.Exists(Path.Combine(Utils.StartupPath(), "wpfgfx_cor3.dll"))
|
||||||
|
&& File.Exists(Path.Combine(Utils.StartupPath(), "D3DCompiler_47_cor3.dll"))
|
||||||
|
)
|
||||||
|
{
|
||||||
|
return coreInfo?.coreDownloadUrl64.Replace("v2rayN.zip", "zz_v2rayN-SelfContained.zip");
|
||||||
|
}
|
||||||
|
|
||||||
return RuntimeInformation.ProcessArchitecture switch
|
return RuntimeInformation.ProcessArchitecture switch
|
||||||
{
|
{
|
||||||
Architecture.Arm64 => coreInfo?.coreDownloadUrlArm64,
|
Architecture.Arm64 => coreInfo?.coreDownloadUrlArm64,
|
||||||
|
|
|
@ -148,15 +148,15 @@ namespace ServiceLib.ViewModels
|
||||||
|
|
||||||
private async Task CheckUpdateN(bool preRelease)
|
private async Task CheckUpdateN(bool preRelease)
|
||||||
{
|
{
|
||||||
//Check for standalone windows .Net version
|
////Check for standalone windows .Net version
|
||||||
if (Utils.IsWindows()
|
//if (Utils.IsWindows()
|
||||||
&& File.Exists(Path.Combine(Utils.StartupPath(), "wpfgfx_cor3.dll"))
|
// && File.Exists(Path.Combine(Utils.StartupPath(), "wpfgfx_cor3.dll"))
|
||||||
&& File.Exists(Path.Combine(Utils.StartupPath(), "D3DCompiler_47_cor3.dll"))
|
// && File.Exists(Path.Combine(Utils.StartupPath(), "D3DCompiler_47_cor3.dll"))
|
||||||
)
|
// )
|
||||||
{
|
//{
|
||||||
UpdateView(_v2rayN, ResUI.UpdateStandalonePackageTip);
|
// UpdateView(_v2rayN, ResUI.UpdateStandalonePackageTip);
|
||||||
return;
|
// return;
|
||||||
}
|
//}
|
||||||
|
|
||||||
void _updateUI(bool success, string msg)
|
void _updateUI(bool success, string msg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue