|
46 | 46 | return URI.create("${base}/${groupStr}/${artifactId}/${version}/${artifactId}-${version}${classifierStr}.${packaging}") |
47 | 47 | --- a/platform/build-scripts/downloader/src/org/jetbrains/intellij/build/dependencies/JdkDownloader.kt |
48 | 48 | +++ b/platform/build-scripts/downloader/src/org/jetbrains/intellij/build/dependencies/JdkDownloader.kt |
49 | | -@@ -33,11 +33,7 @@ |
50 | | - } |
51 | | - |
52 | | - suspend fun getJdkHome(communityRoot: BuildDependenciesCommunityRoot, os: OS, arch: Arch, infoLog: (String) -> Unit): Path { |
53 | | -- val jdkUrl = getUrl(communityRoot = communityRoot, os = os, arch = arch) |
| 49 | +@@ -55,11 +55,7 @@ |
| 50 | + variation: String? = null, |
| 51 | + infoLog: (String) -> Unit, |
| 52 | + ): Path { |
| 53 | +- val jdkUrl = getUrl(communityRoot = communityRoot, os = os, arch = arch, jdkBuildNumber = jdkBuildNumber, variation = variation) |
54 | 54 | - val jdkArchive = downloadFileToCacheLocation(url = jdkUrl.toString(), communityRoot = communityRoot) |
55 | 55 | - val jdkExtracted = BuildDependenciesDownloader.extractFileToCacheLocation(communityRoot = communityRoot, |
56 | 56 | - archiveFile = jdkArchive, |
|
72 | 72 | * Set both properties if a .snap package should be produced. |
73 | 73 | --- a/platform/build-scripts/src/org/jetbrains/intellij/build/impl/LinuxDistributionBuilder.kt |
74 | 74 | +++ b/platform/build-scripts/src/org/jetbrains/intellij/build/impl/LinuxDistributionBuilder.kt |
75 | | -@@ -45,7 +45,7 @@ |
76 | | - withContext(Dispatchers.IO) { |
| 75 | +@@ -50,7 +50,7 @@ |
77 | 76 | val distBinDir = targetPath.resolve("bin") |
78 | 77 | val sourceBinDir = context.paths.communityHomeDir.resolve("bin/linux") |
79 | | -- copyFileToDir(NativeBinaryDownloader.downloadRestarter(context = context, os = OsFamily.LINUX, arch = arch), distBinDir) |
| 78 | + addNativeLauncher(distBinDir, targetPath, arch) |
| 79 | +- copyFileToDir(NativeBinaryDownloader.getRestarter(context, OsFamily.LINUX, arch), distBinDir) |
80 | 80 | + copyFileToDir(sourceBinDir.resolve("${arch.dirName}/restarter"), distBinDir) |
81 | 81 | copyFileToDir(sourceBinDir.resolve("${arch.dirName}/fsnotifier"), distBinDir) |
82 | | - copyFileToDir(sourceBinDir.resolve("${arch.dirName}/libdbm.so"), distBinDir) |
83 | 82 | generateBuildTxt(context, targetPath) |
| 83 | + copyDistFiles(context, targetPath, OsFamily.LINUX, arch) |
84 | 84 | @@ -85,6 +85,8 @@ |
85 | 85 | } |
86 | 86 | } |
|
90 | 90 | val runtimeDir = context.bundledRuntime.extract(os = OsFamily.LINUX, arch = arch) |
91 | 91 | updateExecutablePermissions(runtimeDir, executableFileMatchers) |
92 | 92 | val tarGzPath = buildTarGz(arch = arch, runtimeDir = runtimeDir, unixDistPath = osAndArchSpecificDistPath, suffix = suffix(arch)) |
| 93 | +@@ -383,7 +385,8 @@ |
| 94 | + } |
| 95 | + |
| 96 | + private suspend fun addNativeLauncher(distBinDir: Path, targetPath: Path, arch: JvmArchitecture) { |
| 97 | +- val (execPath, licensePath) = NativeBinaryDownloader.getLauncher(context, OsFamily.LINUX, arch) |
| 98 | ++ val execPath = Path.of("XPLAT_LAUNCHER_PREBUILT_PATH_HERE/Linux-${arch.archName}/xplat-launcher") |
| 99 | ++ val licensePath = Path.of("XPLAT_LAUNCHER_PREBUILT_PATH_HERE/license/xplat-launcher-third-party-licenses.html") |
| 100 | + copyFile(execPath, distBinDir.resolve(context.productProperties.baseFileName)) |
| 101 | + copyFile(licensePath, targetPath.resolve("license/launcher-third-party-libraries.html")) |
| 102 | + } |
93 | 103 | --- a/platform/build-scripts/src/org/jetbrains/intellij/build/impl/brokenPlugins.kt |
94 | 104 | +++ b/platform/build-scripts/src/org/jetbrains/intellij/build/impl/brokenPlugins.kt |
95 | 105 | @@ -9,6 +9,8 @@ |
|
137 | 147 | - // Ideal solution would be to move compilation to other process altogether and do not modify current process classpath |
138 | 148 | - println(" * Downloading $kotlinJpsPluginUrl") |
139 | 149 | - val tmpLocation = Files.createTempFile(cacheLocation.parent, cacheLocation.name, ".tmp") |
140 | | -- suspendingRetryWithExponentialBackOff { |
| 150 | +- retryWithExponentialBackOff { |
141 | 151 | - FileUtils.copyURLToFile(kotlinJpsPluginUrl.toURL(), tmpLocation.toFile()) |
142 | 152 | - } |
143 | 153 | - Files.move(tmpLocation, cacheLocation, StandardCopyOption.ATOMIC_MOVE) |
|
0 commit comments