diff --git a/ChromiumBasedEditors/lib/src/cefwrapper/client_renderer_wrapper.cpp b/ChromiumBasedEditors/lib/src/cefwrapper/client_renderer_wrapper.cpp index caeaf55d..3198dcc0 100644 --- a/ChromiumBasedEditors/lib/src/cefwrapper/client_renderer_wrapper.cpp +++ b/ChromiumBasedEditors/lib/src/cefwrapper/client_renderer_wrapper.cpp @@ -2593,6 +2593,10 @@ window._external_process_callback = {};\n\ sPluginName.erase(std::remove(sPluginName.begin(), sPluginName.end(), L'/'), sPluginName.end()); std::wstring sPackageUrl = sBaseUrl + L"/deploy/" + sPluginName + L".plugin"; + if (0 == sBaseUrl.find(L"https://onlyoffice.github.io")) + sPackageUrl = L"https://github.com/ONLYOFFICE/onlyoffice.github.io/releases/latest/download/" + sPluginName + L".plugin"; + else if (0 == sBaseUrl.find(L"https://onlyoffice-plugins.github.io/onlyoffice.github.io")) + sPackageUrl = L"https://github.com/ONLYOFFICE-PLUGINS/onlyoffice.github.io/releases/latest/download/" + sPluginName + L".plugin"; std::wstring sTmpFile = NSFile::CFileBinary::GetTempPath() + L"/temp_asc_plugin.plugin"; if (NSFile::CFileBinary::Exists(sTmpFile)) diff --git a/ChromiumBasedEditors/lib/src/plugins.h b/ChromiumBasedEditors/lib/src/plugins.h index f6a7ecf8..bc55ba71 100644 --- a/ChromiumBasedEditors/lib/src/plugins.h +++ b/ChromiumBasedEditors/lib/src/plugins.h @@ -310,7 +310,7 @@ public: bool InstallPluginFromStore(const std::wstring& name) { - std::wstring sPackageUrl = L"https://onlyoffice.github.io/sdkjs-plugins/content/" + name + L"/deploy/" + name + L".plugin"; + std::wstring sPackageUrl = L"https://github.com/ONLYOFFICE/onlyoffice.github.io/releases/latest/download/" + name + L".plugin"; std::wstring sTmpFile = NSDirectory::GetTempPath() + L"/temp_asc_plugin.plugin"; if (NSFile::CFileBinary::Exists(sTmpFile))