Skip to content

Commit

Permalink
Support for Android Studio DMG archives
Browse files Browse the repository at this point in the history
  • Loading branch information
hsz committed May 20, 2024
1 parent 92e4348 commit 6d26071
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Added

- Support for Android Studio DMG archives
- Introduce `VerifyPluginProjectConfigurationTask.hasModulePlugin` to exclude modules using `org.jetbrains.intellij.platform.module` subplugin from `plugin.xml` checks.

## [2.0.0-beta3] - 2024-05-18
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ abstract class IntelliJPlatformRepositoriesExtension @Inject constructor(
fun binaryReleasesAndroidStudio(action: IvyRepositoryAction = {}) = createIvyRepository(
name = "Android Studio Binary Releases",
url = Locations.ANDROID_STUDIO_BINARY_RELEASES,
patterns = listOf("/ide-zips/[revision]/[artifact]-[revision]-[classifier].[ext]"),
patterns = listOf(
"/ide-zips/[revision]/[artifact]-[revision]-[classifier].[ext]",
"/install/[revision]/[artifact]-[revision]-[classifier].[ext]",
),
action = {
repositories.exclusiveContent {
forRepositories(this@createIvyRepository)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ abstract class AndroidStudioDownloadLinkValueSource : ValueSource<String, Parame
item.downloads
.asSequence()
.map { it.link }
.filter { link -> link.contains("ide-zips") }
.filter { link -> link.substringAfterLast('/').contains(os) }
.filterNot { link -> link.endsWith(".deb") || link.endsWith(".exe") } // Extracting of .deb and .exe archives is not supported.
.sortedWith(compareByDescending { link ->
val arch = when {
os == "mac" && System.getProperty("os.arch") == "aarch64" -> "arm"
Expand Down

0 comments on commit 6d26071

Please sign in to comment.