Fix destination path issue

This commit is contained in:
Jaex 2018-03-04 01:12:14 +03:00
parent 4a4ad8e5af
commit 97452cb768
2 changed files with 3 additions and 3 deletions

View file

@ -36,7 +36,7 @@ public static void Extract(string archivePath, string destination, bool retainDi
{
using (ZipArchive archive = ZipFile.OpenRead(archivePath))
{
string fullName = Directory.CreateDirectory(destination).FullName;
string fullName = Directory.CreateDirectory(Path.GetFullPath(destination)).FullName;
foreach (ZipArchiveEntry entry in archive.Entries)
{

View file

@ -301,7 +301,7 @@ private static void CopyFFmpeg(string destination, bool include32bit, bool inclu
if (!File.Exists(FFmpeg32bit))
{
string filename = SetupHelpers.DownloadFile("https://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-20171130-83ecdc9-win32-static.zip");
ZipManager.Extract(filename, "", false, new List<string>() { "ffmpeg.exe" });
ZipManager.Extract(filename, ".", false, new List<string>() { "ffmpeg.exe" });
File.Move("ffmpeg.exe", FFmpeg32bit);
}
@ -313,7 +313,7 @@ private static void CopyFFmpeg(string destination, bool include32bit, bool inclu
if (!File.Exists(FFmpeg64bit))
{
string filename = SetupHelpers.DownloadFile("https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-20171130-83ecdc9-win64-static.zip");
ZipManager.Extract(filename, "", false, new List<string>() { "ffmpeg.exe" });
ZipManager.Extract(filename, ".", false, new List<string>() { "ffmpeg.exe" });
File.Move("ffmpeg.exe", FFmpeg64bit);
}