diff --git a/src/MeoAssistance/Version.h b/src/MeoAssistance/Version.h index 9a66aa48db..fb7e7e6910 100644 --- a/src/MeoAssistance/Version.h +++ b/src/MeoAssistance/Version.h @@ -2,5 +2,5 @@ namespace asst { - constexpr static const char* Version = "v2.2.2"; + constexpr static const char* Version = "v2.2.3"; } diff --git a/src/MeoAsstGui/ViewModels/VersionUpdateViewModel.cs b/src/MeoAsstGui/ViewModels/VersionUpdateViewModel.cs index 2164e898d2..72bf145b9c 100644 --- a/src/MeoAsstGui/ViewModels/VersionUpdateViewModel.cs +++ b/src/MeoAsstGui/ViewModels/VersionUpdateViewModel.cs @@ -348,7 +348,7 @@ namespace MeoAsstGui public bool ResourceOTA() { const string req_base_url = "https://api.github.com/repos/MistEO/MeoAssistance-Arknights/commits?path="; - const string down_base_url = "https://cdn.jsdelivr.net/gh/MistEO/MeoAssistance-Arknights@master/"; + const string down_base_url = "https://cdn.jsdelivr.net/gh/MistEO/MeoAssistance-Arknights@"; var update_dict = new Dictionary() { { "3rdparty/resource/penguin-stats-recognize/json/stages.json" , "resource/penguin-stats-recognize/json/stages.json"}, @@ -382,7 +382,8 @@ namespace MeoAsstGui } string tempname = filename + ".tmp"; - if (!DownloadFile(down_base_url + url, tempname)) + string download_url = down_base_url + cloud_sha + "/" + url; + if (!DownloadFile(download_url, tempname)) { continue; }