Added SelfUpdate

This commit is contained in:
2024-07-13 22:33:09 +03:00
parent 349c669284
commit 6599428043
8 changed files with 157 additions and 95 deletions

View File

@@ -21,6 +21,19 @@ public static class Entry
File.Delete("./Data/Resources/plugins.json");
Directory.Delete("./Libraries/", true);
}),
new StartupAction("--update-cleanup", () => {
List<string> files = new List<string>();
files.AddRange(Directory.GetFiles("./"));
foreach (var file in files)
{
if (file.EndsWith(".bak"))
File.Delete(file);
}
Directory.Delete("temp");
})
];