OPENIDE change external url for updates

This commit is contained in:
Nikita Iarychenko
2025-03-11 15:12:16 +04:00
parent 7efac85ba0
commit 83d8604f87

View File

@@ -27,7 +27,9 @@ class OpenIdeExternalResourceUrls : ExternalProductResourceUrls {
private val productUrl = Urls.newFromEncoded("https://openide.ru")
override val updateMetadataUrl = productUrl.resolve("update/updates.xml")
override val updateMetadataUrl: Url
get() = System.getProperty("idea.updates.url", "https://download.openide.ru/updates/updates.xml")
.let { Urls.newFromEncoded(it) }
override fun computePatchUrl(from: BuildNumber, to: BuildNumber): Url =
Urls.newFromEncoded("https://download.openide.ru/ide").resolve(computePatchFileName(from, to))