Remove zip after extracted for updater

This commit is contained in:
KillzXGaming 2019-03-29 21:38:01 -04:00
parent ce7a1736a2
commit adae13380f
3 changed files with 3 additions and 0 deletions

Binary file not shown.

View file

@ -122,6 +122,9 @@ namespace Updater
if (Directory.Exists(downloadName + "/"))
Directory.Delete(downloadName + "/", true);
ZipFile.ExtractToDirectory(downloadName + ".zip", downloadName + "/");
//Zip not needed anymore
File.Delete(downloadName + ".zip");
string versionTxt = Path.Combine(Path.GetFullPath(downloadName + "/"), "Version.txt");
using (StreamWriter writer = new StreamWriter(versionTxt))