mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
feat.支持更多资源的OTA升级
This commit is contained in:
@@ -1055,7 +1055,8 @@ namespace MeoAsstGui
|
||||
var updateModle = _container.Get<VersionUpdateViewModel>();
|
||||
Task.Run(() =>
|
||||
{
|
||||
if (!updateModle.CheckAndDownloadUpdate(true))
|
||||
if (!updateModle.CheckAndDownloadUpdate(true)
|
||||
&& !updateModle.ResourceOTA(true))
|
||||
{
|
||||
using (var toast = new ToastNotification("已是最新版本~"))
|
||||
{
|
||||
|
||||
@@ -621,10 +621,10 @@ namespace MeoAsstGui
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool ResourceOTA()
|
||||
public bool ResourceOTA(bool force = false)
|
||||
{
|
||||
// 开发版不检查更新
|
||||
if (!isStableVersion())
|
||||
if (!force && !isStableVersion())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -650,7 +650,9 @@ namespace MeoAsstGui
|
||||
var update_dict = new Dictionary<string, string>()
|
||||
{
|
||||
{ "resource/stages.json" , "resource/stages.json"},
|
||||
{ "resource/recruit.json", "resource/recruit.json" }
|
||||
{ "resource/recruit.json", "resource/recruit.json" },
|
||||
{ "3rdparty/resource/Arknights-Tile-Pos/levels.json" , "resource/Arknights-Tile-Pos/levels.json"},
|
||||
{ "resource/item_index.json", "resource/item_index.json" }
|
||||
};
|
||||
|
||||
bool updated = false;
|
||||
|
||||
Reference in New Issue
Block a user