fix upgrade bug

pull/1813/head
2dust 2021-10-03 16:35:53 +08:00
parent dc72c949c3
commit 5076f45674
4 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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)

View File

@ -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" />

View File

@ -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>