Auto updater added
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO.Compression;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PWAppUpdater.Zip
|
||||
{
|
||||
class ZipManager
|
||||
{
|
||||
public static void UnZip(string source, string destination, bool Override)
|
||||
{
|
||||
if (Override)
|
||||
{
|
||||
if (Directory.Exists(destination))
|
||||
{
|
||||
Directory.Delete(destination, true);
|
||||
}
|
||||
}
|
||||
|
||||
ZipFile.ExtractToDirectory(source, destination);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user