mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-29 17:02:05 +13:00
Fix destination path issue
This commit is contained in:
parent
4a4ad8e5af
commit
97452cb768
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue