-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathintellij-jbr25.json
More file actions
67 lines (67 loc) · 3.57 KB
/
intellij-jbr25.json
File metadata and controls
67 lines (67 loc) · 3.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"version": "25.0.1-b266.34",
"homepage": "https://github.com/JetBrains/JetBrainsRuntime",
"description": "A fork of OpenJDK that supports enhanced class redefinition (DCEVM), features optional JCEF, a framework for embedding Chromium-based browsers, includes a number of improvements in font rendering, keyboards support, windowing/focus subsystems, HiDPI, accessibility, and performance, provides better desktop integration and bugfixes not yet present in OpenJDK.",
"license": "GPL-2.0-only",
"architecture": {
"64bit": {
"url": "https://cache-redirector.jetbrains.com/intellij-jbr/jbr-25.0.1-windows-x64-b266.34.tar.gz",
"hash": "sha512:e510033b056d7b396ee4d02f01ad3f70cd1ac2eb3ffac5d340bb8874a91fe9540f5cdb3bf84d22ac447af3f998c4e426d25aa924e39391b2d5067502b29bcaea",
"extract_dir": "jbr-25.0.1-windows-x64-b266.34"
},
"arm64": {
"url": "https://cache-redirector.jetbrains.com/intellij-jbr/jbr-25.0.1-windows-aarch64-b266.34.tar.gz",
"hash": "sha512:cb7d4e32207d24c95efb27dcc8d769fac80975c3646f5841ebc2396ed7f5c964043ae7c58b0e2d20019f5e10590347cbda8226509e3c8577e58571445ebc7c62",
"extract_dir": "jbr-25.0.1-windows-aarch64-b266.34"
}
},
"env_set": {
"JAVA_HOME": "$dir"
},
"env_add_path": "bin",
"checkver": {
"script": [
"$url = 'https://api.github.com/repos/JetBrains/JetBrainsRuntime/releases'",
"$releases = Invoke-RestMethod $url",
"$tags = $releases | ForEach-Object { $_.tag_name }",
"# `$Script:expected_ver` is current version for fallback",
"$tags += 'jbr-release-' + ($Script:expected_ver -replace '-', '')",
"$pattern = 'jbr-release-25\\.(?<Version>[\\d.]+)b(?<BuildNum>[\\d]+)\\.(?<Patch>\\d+)'",
"$matches = foreach ($t in $tags) { if ($t -match $pattern) {",
" [PSCustomObject]@{",
" Tag = $t",
" VersionParts = ($Matches.Version -split '\\.') | ForEach-Object { [int]$_ }",
" BuildNum = [int]$Matches.BuildNum",
" Patch = [int]$Matches.Patch",
" }",
" } }",
"$latest = $matches | Sort-Object @{Expression={$_.VersionParts[0]}},",
" @{Expression={$_.VersionParts[1]}},",
" @{Expression={$_.BuildNum}},",
" @{Expression={$_.Patch}} | Select-Object -Last 1",
"Write-Output $latest.Tag"
],
"regex": "jbr-release-25\\.(?<Version>[\\d.]+)(?<Build>[\\w]+)\\.(?<Patch>[\\d]+)",
"replace": "25.${Version}-${Build}.${Patch}"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://cache-redirector.jetbrains.com/intellij-jbr/jbr-25.$matchVersion-windows-x64-$matchBuild.$matchPatch.tar.gz",
"hash": {
"url": "$url.checksum",
"regex": "$sha512\\s"
},
"extract_dir": "jbr-25.$matchVersion-windows-x64-$matchBuild.$matchPatch"
},
"arm64": {
"url": "https://cache-redirector.jetbrains.com/intellij-jbr/jbr-25.$matchVersion-windows-aarch64-$matchBuild.$matchPatch.tar.gz",
"hash": {
"url": "$url.checksum",
"regex": "$sha512\\s"
},
"extract_dir": "jbr-25.$matchVersion-windows-aarch64-$matchBuild.$matchPatch"
}
}
}
}