OPENIDE #81 Integration of Russian locale into OpenIDE

(cherry picked from commit a8dedc5a65ffb7d62567e2ca64f7657ab6852437)
(cherry picked from commit 271e97f004)
(cherry picked from commit 976f75091e)
(cherry picked from commit d70387be2d)
This commit is contained in:
Nikita Iarychenko
2026-03-26 13:04:23 +04:00
parent d9e74e7020
commit d7c3f5cfa8
2 changed files with 7 additions and 3 deletions
@@ -14,20 +14,24 @@ import java.nio.file.Path
object OpenIdePluginBundler {
private const val PLUGINS_DIR = "build/download/plugins"
private const val DOWNLOADABLE_PLUGINS_DIR = "build/download/plugins"
private const val PHYSICAL_PLUGINS_DIR = "build/bundled-plugins"
private const val AMPLICODE_URL = "https://amplicode.ru"
private const val AMPLICODE_MARKETPLACE_URL = "https://amplicode.ru/jetbrains-marketplace"
fun getBundlePluginPaths(context: BuildContext): List<Path> {
val communityHomeDir = context.paths.communityHomeDir
return listOf(Path.of("${communityHomeDir}/$PLUGINS_DIR/amplicode"))
return listOf(
Path.of("${communityHomeDir}/$DOWNLOADABLE_PLUGINS_DIR/amplicode"),
Path.of("${communityHomeDir}/$PHYSICAL_PLUGINS_DIR/ru_pack")
)
}
fun bundleAmplicodePlugin(context: BuildContext) {
val majorVersion = context.buildNumber.substringBefore('.')
val uri = resolveAmplicodeUri(majorVersion)
val archivePath = BuildDependenciesDownloader.downloadFileToCacheLocation(COMMUNITY_ROOT, uri)
val targetDir = context.paths.communityHomeDir.resolve("$PLUGINS_DIR/amplicode")
val targetDir = context.paths.communityHomeDir.resolve("$DOWNLOADABLE_PLUGINS_DIR/amplicode")
BuildDependenciesDownloader.extractFile(archivePath, targetDir, COMMUNITY_ROOT, BuildDependenciesExtractOptions.STRIP_ROOT)
}