Change plugins install url

This commit is contained in:
Oleg Korshul
2025-10-01 15:05:31 +03:00
parent 8c3cbe4f98
commit 0c6fff5594
2 changed files with 5 additions and 1 deletions

View File

@ -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))

View File

@ -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))