chore: 清理跨版本垃圾

This commit is contained in:
uye
2024-08-04 20:39:26 +08:00
parent de4fd18ba0
commit 2749fa6cfb

View File

@@ -229,6 +229,17 @@ namespace MaaWpfGui.ViewModels.UI
const string CmdFileContent = "@echo off\r\nif exist MAA.exe (\r\n ren MAA.exe MAA_v5.exe\r\n)\r\nstart \"\" .\\MAA_win7.exe";
File.WriteAllText("启动旧版.cmd", CmdFileContent);
}
else
{
if (File.Exists("MAA_win7.exe"))
{
File.Delete("MAA_win7.exe");
}
if (File.Exists("启动旧版.cmd"))
{
File.Delete("启动旧版.cmd");
}
}
string removeListFile = Path.Combine(extractDir, "removelist.txt");
if (File.Exists(removeListFile))