妥善处理依赖

舍弃释放libs.zip,增加启动速度、代码安全性,减少.git占用
This commit is contained in:
YFdyh000
2020-03-21 03:55:57 +08:00
parent 111f77c59c
commit 948b9c26d9
19 changed files with 41 additions and 88 deletions
-21
View File
@@ -33,11 +33,6 @@ namespace v2rayN
if (!IsDuplicateInstance())
{
if (!UnzipLibs())
{
UI.ShowError($"Error preparing the environment(准备运行环境出错)");
return;
}
Utils.SaveLog("v2rayN start up " + Utils.GetVersion());
@@ -100,21 +95,5 @@ namespace v2rayN
{
Utils.SaveLog("CurrentDomain_UnhandledException", (Exception)e.ExceptionObject);
}
static bool UnzipLibs()
{
string fileName = Utils.GetPath("libs.zip");
if (!FileManager.ByteArrayToFile(fileName, Resources.libs))
{
return false;
}
if (!FileManager.ZipExtractToFile(fileName))
{
return false;
}
return true;
}
}
}