OPENIDE change external url for updates

(cherry picked from commit b6ed5ee1681ea457bfe80c81fe37aad89724abd0)
(cherry picked from commit 1a5ec337d1)
(cherry picked from commit fbf52ab7b7)
This commit is contained in:
Nikita Iarychenko
2025-03-11 15:12:16 +04:00
parent 5fb8e90096
commit a636d7f079

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