|
1 | 1 | { |
2 | | - "version": "21.0.7-b1038.58", |
| 2 | + "version": "21.0.8-b1038.68", |
3 | 3 | "homepage": "https://github.com/JetBrains/JetBrainsRuntime", |
4 | 4 | "description": "A fork of OpenJDK that includes a number enhancements in font rendering, HiDPI support, ligatures, performance improvements, and bugfixes. These are mainly for running IntelliJ Platform-based products", |
5 | 5 | "license": "GPL-2.0", |
6 | 6 | "architecture": { |
7 | 7 | "32bit": { |
8 | | - "url": "https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-21.0.7-windows-x86-b1038.58.tar.gz", |
9 | | - "hash": "sha512:39f890e3de7fefeed63293ce9a8a8b4e1e4c81f549eb94ba33855a000926e3ea950b3d83b4723263c3557f767ae350e4d4ff88ebdaf104d735639d73f3fb8012", |
10 | | - "extract_dir": "jbrsdk-21.0.7-windows-x86-b1038.58" |
| 8 | + "url": "https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-21.0.8-windows-x86-b1038.68.tar.gz", |
| 9 | + "hash": "sha512:d9ced851e1d52e2122121afe3ec08c7010d2c7924832392e1da7e474b891d80edf0a6913bf4ff92a00652b44fc11658bfb9d44d39371a4a5a48ce9860cb06f7e", |
| 10 | + "extract_dir": "jbrsdk-21.0.8-windows-x86-b1038.68" |
11 | 11 | }, |
12 | 12 | "64bit": { |
13 | | - "url": "https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-21.0.7-windows-x64-b1038.58.tar.gz", |
14 | | - "hash": "sha512:0dc935ebfd61682b5d641fe4794a9f87b858ae51475bdf8eb1980fadc5da2b3aac502cb9bd4de571ea22c71b62b5bf7028fadfd5594746f3f34c3e6aa30bd1de", |
15 | | - "extract_dir": "jbrsdk-21.0.7-windows-x64-b1038.58" |
| 13 | + "url": "https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-21.0.8-windows-x64-b1038.68.tar.gz", |
| 14 | + "hash": "sha512:b197aa242e3d8d0d0697f6c213f553b2836349a8f46682882763b0ad4d7def7a303c61bc25aa6b1585650f3f02acf0ddb46600a1e5f3c1429af5efa24c65bb17", |
| 15 | + "extract_dir": "jbrsdk-21.0.8-windows-x64-b1038.68" |
16 | 16 | }, |
17 | 17 | "arm64": { |
18 | | - "url": "https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-21.0.7-windows-aarch64-b1038.58.tar.gz", |
19 | | - "hash": "sha512:1ce926a18bfc88416fb66c7ed1edaea277766224a55f8de860ff00bae875e5a980466d71904d83d3589b49c0aefcb73c75a9e7ccc3a73a187268762597b358cf", |
20 | | - "extract_dir": "jbrsdk-21.0.7-windows-aarch64-b1038.58" |
| 18 | + "url": "https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-21.0.8-windows-aarch64-b1038.68.tar.gz", |
| 19 | + "hash": "sha512:c81b2f261883359dc39fb9ebbff0b757f50a24cecb9c6a7f7f2271593b128d1019e94655b77d843538f6019a08719ea55727532314a78837f8e7e43def3ca639", |
| 20 | + "extract_dir": "jbrsdk-21.0.8-windows-aarch64-b1038.68" |
21 | 21 | } |
22 | 22 | }, |
23 | 23 | "env_set": { |
24 | 24 | "JAVA_HOME": "$dir" |
25 | 25 | }, |
26 | 26 | "env_add_path": "bin", |
27 | 27 | "checkver": { |
28 | | - "url": "https://api.github.com/repos/JetBrains/JetBrainsRuntime/releases", |
29 | | - "jsonpath": "$[?(@.tag_name =~ /^jbr-release-21\\./)].tag_name", |
| 28 | + "script": [ |
| 29 | + "$url = 'https://api.github.com/repos/JetBrains/JetBrainsRuntime/releases'", |
| 30 | + "$releases = Invoke-RestMethod $url", |
| 31 | + "$tags = $releases | ForEach-Object { $_.tag_name }", |
| 32 | + "# `$Script:expected_ver` is current version for fallback", |
| 33 | + "$tags += 'jbr-release-' + ($Script:expected_ver -replace '-', '')", |
| 34 | + "$pattern = 'jbr-release-21\\.(?<Version>[\\d.]+)b(?<BuildNum>[\\d]+)\\.(?<Patch>\\d+)'", |
| 35 | + "$matches = foreach ($t in $tags) { if ($t -match $pattern) {", |
| 36 | + " [PSCustomObject]@{", |
| 37 | + " Tag = $t", |
| 38 | + " VersionParts = ($Matches.Version -split '\\.') | ForEach-Object { [int]$_ }", |
| 39 | + " BuildNum = [int]$Matches.BuildNum", |
| 40 | + " Patch = [int]$Matches.Patch", |
| 41 | + " }", |
| 42 | + " } }", |
| 43 | + "$latest = $matches | Sort-Object @{Expression={$_.VersionParts[0]}},", |
| 44 | + " @{Expression={$_.VersionParts[1]}},", |
| 45 | + " @{Expression={$_.BuildNum}},", |
| 46 | + " @{Expression={$_.Patch}} | Select-Object -Last 1", |
| 47 | + "Write-Output $latest.Tag" |
| 48 | + ], |
30 | 49 | "regex": "jbr-release-21\\.(?<Version>[\\d.]+)(?<Build>[\\w]+)\\.(?<Patch>[\\d]+)", |
31 | 50 | "replace": "21.${Version}-${Build}.${Patch}" |
32 | 51 | }, |
|
0 commit comments