mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
chore: net8后不进行MAA_win7.exe备份
This commit is contained in:
@@ -222,7 +222,11 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
return false;
|
||||
}
|
||||
|
||||
File.Copy(Path.Combine(curDir, "MAA.exe"), Path.Combine(curDir, "MAA_win7.exe"), true);
|
||||
// 如果是 Framework48,把 MAA.exe 复制一份,重命名为 MAA_win7.exe
|
||||
if (RuntimeInformation.FrameworkDescription.Contains("Framework"))
|
||||
{
|
||||
File.Copy(Path.Combine(curDir, "MAA.exe"), Path.Combine(curDir, "MAA_win7.exe"), true);
|
||||
}
|
||||
|
||||
string removeListFile = Path.Combine(extractDir, "removelist.txt");
|
||||
if (File.Exists(removeListFile))
|
||||
@@ -475,7 +479,8 @@ namespace MaaWpfGui.ViewModels.UI
|
||||
{
|
||||
Process.Start(UpdateUrl);
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
_ = Execute.OnUIThreadAsync(() =>
|
||||
{
|
||||
using var toast = new ToastNotification((otaFound ? LocalizationHelper.GetString("NewVersionFoundTitle") : LocalizationHelper.GetString("NewVersionFoundButNoPackageTitle")) + " : " + UpdateTag);
|
||||
|
||||
Reference in New Issue
Block a user