mirror of
https://github.com/ScoopInstaller/Java.git
synced 2026-08-02 16:09:23 +08:00
68 lines
3.6 KiB
JSON
68 lines
3.6 KiB
JSON
{
|
|
"version": "25.0.3-b508.16",
|
|
"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/jbrsdk-25.0.3-windows-x64-b508.16.tar.gz",
|
|
"hash": "sha512:727c6eb7229a5790f1093d0e63a9bc4e75ef69b8b0c9c17e04e8b0008017fc595a2523b83f2074deab519f38cc5a68b022b0d1cd45a6d71d033ec1c600cc6f1a",
|
|
"extract_dir": "jbrsdk-25.0.3-windows-x64-b508.16"
|
|
},
|
|
"arm64": {
|
|
"url": "https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-25.0.3-windows-aarch64-b508.16.tar.gz",
|
|
"hash": "sha512:97168a1acdd617d6589e7f85e8620e4a27beb8c73e98386747552f71ca912fcc8dcd7a604b8ff96a6b3f0f33d41e7a01e0e3d6c2bd50344ee7c78e36b3b75a2f",
|
|
"extract_dir": "jbrsdk-25.0.3-windows-aarch64-b508.16"
|
|
}
|
|
},
|
|
"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/jbrsdk-25.$matchVersion-windows-x64-$matchBuild.$matchPatch.tar.gz",
|
|
"hash": {
|
|
"url": "$url.checksum",
|
|
"regex": "$sha512\\s"
|
|
},
|
|
"extract_dir": "jbrsdk-25.$matchVersion-windows-x64-$matchBuild.$matchPatch"
|
|
},
|
|
"arm64": {
|
|
"url": "https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-25.$matchVersion-windows-aarch64-$matchBuild.$matchPatch.tar.gz",
|
|
"hash": {
|
|
"url": "$url.checksum",
|
|
"regex": "$sha512\\s"
|
|
},
|
|
"extract_dir": "jbrsdk-25.$matchVersion-windows-aarch64-$matchBuild.$matchPatch"
|
|
}
|
|
}
|
|
}
|
|
}
|