android_studio_releases.main.kts: fixes

This commit is contained in:
Jakub Chrzanowski 2022-03-04 13:09:20 +01:00
parent a37b8dde38
commit a2ead9742c
No known key found for this signature in database
GPG Key ID: C39095BFD769862E
3 changed files with 8 additions and 4 deletions

View File

@ -52,7 +52,7 @@ frameUrl.fetch { content ->
println("# $name") println("# $name")
println(" ${index + 1}/$size") println(" ${index + 1}/$size")
val build = nameToBuildMapping[name] ?: run { val build = nameToBuildMapping[name].takeUnless(String?::isNullOrBlank) ?: run {
item.select(".downloads a[href$=.zip]").firstOrNull()?.attr("href")?.resolveBuild() item.select(".downloads a[href$=.zip]").firstOrNull()?.attr("href")?.resolveBuild()
} ?: throw IllegalStateException("No platform build found for $name") } ?: throw IllegalStateException("No platform build found for $name")
val platformBuild = build.split("-").last().split(".").take(3).joinToString(".").let(SemVer.Companion::parse) val platformBuild = build.split("-").last().split(".").take(3).joinToString(".").let(SemVer.Companion::parse)
@ -77,6 +77,7 @@ frameUrl.fetch { content ->
<chunk id="releases_table"> <chunk id="releases_table">
| Android Studio | Channel | Build | Version | Release Date | IntelliJ IDEA Build Number | IntelliJ IDEA Release Version | | Android Studio | Channel | Build | Version | Release Date | IntelliJ IDEA Build Number | IntelliJ IDEA Release Version |
|----------------|---------|-------|---------|--------------|----------------------------|-------------------------------| |----------------|---------|-------|---------|--------------|----------------------------|-------------------------------|
""".trimIndent() + """.trimIndent() +
items.joinToString("\n") { items.joinToString("\n") {
@ -89,6 +90,7 @@ frameUrl.fetch { content ->
<chunk id="releases_table_short"> <chunk id="releases_table_short">
| Android Studio | Release Date | IntelliJ IDEA Version | | Android Studio | Release Date | IntelliJ IDEA Version |
|----------------|--------------|-----------------------| |----------------|--------------|-----------------------|
""".trimIndent() + """.trimIndent() +
items.distinctBy { it.version }.take(5).joinToString("\n") { items.distinctBy { it.version }.take(5).joinToString("\n") {

View File

@ -1,6 +1,7 @@
<chunk id="releases_table"> <chunk id="releases_table">
| Android Studio | Channel | Build | Version | Release Date | IntelliJ IDEA Build Number | IntelliJ IDEA Release Version | | Android Studio | Channel | Build | Version | Release Date | IntelliJ IDEA Build Number | IntelliJ IDEA Release Version |
|----------------|---------|-------|---------|--------------|----------------------------|-------------------------------|| Android Studio Dolphin (2021.3.1) Canary 5 | canary | AI-213.6777.52.2113.8233036 | 2021.3.1 | March 3, 2022 | 213.6777.52 | 2021.3.2 | |----------------|---------|-------|---------|--------------|----------------------------|-------------------------------|
| Android Studio Dolphin (2021.3.1) Canary 5 | canary | AI-213.6777.52.2113.8233036 | 2021.3.1 | March 3, 2022 | 213.6777.52 | 2021.3.2 |
| Android Studio Dolphin (2021.3.1) Canary 4 | canary | AI-213.6777.52.2113.8195552 | 2021.3.1 | February 28, 2022 | 213.6777.52 | 2021.3.2 | | Android Studio Dolphin (2021.3.1) Canary 4 | canary | AI-213.6777.52.2113.8195552 | 2021.3.1 | February 28, 2022 | 213.6777.52 | 2021.3.2 |
| Android Studio Chipmunk (2021.2.1) Beta 3 | beta | AI-212.5712.43.2112.8184640 | 2021.2.1 | February 28, 2022 | 212.5712.43 | 2021.2.4 | | Android Studio Chipmunk (2021.2.1) Beta 3 | beta | AI-212.5712.43.2112.8184640 | 2021.2.1 | February 28, 2022 | 212.5712.43 | 2021.2.4 |
| Android Studio Bumblebee (2021.1.1) Patch 2 | patch | AI-211.7628.21.2111.8193401 | 2021.1.1 | February 23, 2022 | 211.7628.21 | 2021.1.3 | | Android Studio Bumblebee (2021.1.1) Patch 2 | patch | AI-211.7628.21.2111.8193401 | 2021.1.1 | February 23, 2022 | 211.7628.21 | 2021.1.3 |
@ -299,7 +300,8 @@
<chunk id="releases_table_short"> <chunk id="releases_table_short">
| Android Studio | Release Date | IntelliJ IDEA Version | | Android Studio | Release Date | IntelliJ IDEA Version |
|----------------|--------------|-----------------------|| Android Studio Dolphin (2021.3.1) Canary 5 | March 3, 2022 | 2021.3.2 (213.6777.52) | |----------------|--------------|-----------------------|
| Android Studio Dolphin (2021.3.1) Canary 5 | March 3, 2022 | 2021.3.2 (213.6777.52) |
| Android Studio Chipmunk (2021.2.1) Beta 3 | February 28, 2022 | 2021.2.4 (212.5712.43) | | Android Studio Chipmunk (2021.2.1) Beta 3 | February 28, 2022 | 2021.2.4 (212.5712.43) |
| Android Studio Bumblebee (2021.1.1) Patch 2 | February 23, 2022 | 2021.1.3 (211.7628.21) | | Android Studio Bumblebee (2021.1.1) Patch 2 | February 23, 2022 | 2021.1.3 (211.7628.21) |
| Android Studio Arctic Fox (2020.3.1) Patch 4 | December 8, 2021 | 2020.3.3 (203.7717.56) | | Android Studio Arctic Fox (2020.3.1) Patch 4 | December 8, 2021 | 2020.3.3 (203.7717.56) |

View File

@ -1,4 +1,4 @@
<content version="6"> <content version="7">
<item> <item>
<name>Android Studio Dolphin (2021.3.1) Canary 5</name> <name>Android Studio Dolphin (2021.3.1) Canary 5</name>
<build>AI-213.6777.52.2113.8233036</build> <build>AI-213.6777.52.2113.8233036</build>