Added core update function for macos

This commit is contained in:
2dust
2024-11-25 20:31:12 +08:00
parent 49a3c84fc5
commit d9c22de6b8
8 changed files with 36 additions and 3 deletions

View File

@@ -262,7 +262,7 @@ namespace ServiceLib.ViewModels
FileManager.ZipExtractToFile(fileName, toPath, _config.GuiItem.IgnoreGeoUpdateCore ? "geo" : "");
}
if (Utils.IsLinux())
if (Utils.IsLinux() || Utils.IsOSX())
{
var filesList = (new DirectoryInfo(toPath)).GetFiles().Select(u => u.FullName).ToList();
foreach (var file in filesList)