Browse Source

fix upgrade bug

pull/1813/head
2dust 3 years ago
parent
commit
5076f45674
  1. 1
      v2rayN/v2rayN/Handler/UpdateHandle.cs
  2. 4
      v2rayN/v2rayUpgrade/MainForm.cs
  3. 1
      v2rayN/v2rayUpgrade/v2rayUpgrade.csproj
  4. 2
      v2rayN/v2rayUpgrade/v2rayUpgrade.csproj.user

1
v2rayN/v2rayN/Handler/UpdateHandle.cs

@ -56,6 +56,7 @@ namespace v2rayN.Handler
try
{
string fileName = Utils.GetPath(Global.DownloadFileName);
fileName = Utils.UrlEncode(fileName);
Process process = new Process
{
StartInfo = new ProcessStartInfo

4
v2rayN/v2rayUpgrade/MainForm.cs

@ -3,6 +3,7 @@ using System.Diagnostics;
using System.IO;
using System.IO.Compression;
using System.Text;
using System.Web;
using System.Windows.Forms;
namespace v2rayUpgrade
@ -17,7 +18,8 @@ namespace v2rayUpgrade
InitializeComponent();
if (args.Length > 0)
{
fileName = args[0];
fileName = string.Join(" ", args);
fileName = HttpUtility.UrlDecode(fileName);
}
}
private void showWarn(string message)

1
v2rayN/v2rayUpgrade/v2rayUpgrade.csproj

@ -39,6 +39,7 @@
<Reference Include="System.Core" />
<Reference Include="System.IO.Compression" />
<Reference Include="System.IO.Compression.FileSystem" />
<Reference Include="System.Web" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />

2
v2rayN/v2rayUpgrade/v2rayUpgrade.csproj.user

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<StartArguments>D:\Github\v2rayN\v2rayN\v2rayUpgrade\bin\Debug\v2ray-windows.zip</StartArguments>
<StartArguments>C:\Githubb\v2rayN\v2rayN\新建ee 文件夹\bin\Debug\v2ray-windows.zip</StartArguments>
</PropertyGroup>
</Project>
Loading…
Cancel
Save