mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Merge branch 'master' into develop
This commit is contained in:
@@ -8,10 +8,8 @@ using Squirrel;
|
||||
using Squirrel.SimpleSplat;
|
||||
using Xunit;
|
||||
using System.Text;
|
||||
using SharpCompress.Archives.Zip;
|
||||
using SharpCompress.Readers;
|
||||
using SharpCompress.Common;
|
||||
using Squirrel.CommandLine;
|
||||
using System.IO.Compression;
|
||||
|
||||
namespace Squirrel.Tests.TestHelpers
|
||||
{
|
||||
@@ -128,12 +126,7 @@ namespace Squirrel.Tests.TestHelpers
|
||||
var zipPath = GetPath("fixtures", zipFile);
|
||||
Assert.True(File.Exists(zipPath));
|
||||
|
||||
var opts = new ExtractionOptions() { ExtractFullPath = true, Overwrite = true, PreserveFileTime = true };
|
||||
using (var za = ZipArchive.Open(zipFile))
|
||||
using (var reader = za.ExtractAllEntries()) {
|
||||
reader.WriteEntryToDirectory(path, opts);
|
||||
}
|
||||
|
||||
ZipFile.ExtractToDirectory(zipPath, path);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user