mirror of
https://github.com/ScoopInstaller/Java.git
synced 2026-08-02 16:09:23 +08:00
53 lines
2.3 KiB
JSON
53 lines
2.3 KiB
JSON
{
|
|
"description": "Eclipse Temurin is a runtime provided by Eclipse Adoptium for general use across the Java ecosystem",
|
|
"homepage": "https://adoptium.net",
|
|
"version": "19.0.2-7.0.202302250348",
|
|
"license": "GPL-2.0-only WITH Classpath-exception-2.0",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk19u-2023-02-25-17-31-beta/OpenJDK19U-jdk_x64_windows_hotspot_2023-02-25-17-31.zip",
|
|
"hash": "4d4d78422500c12a172f98ec1fb6f10a64a107e0178f664b5cac800b5141da8a"
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk19u-2023-02-25-17-31-beta/OpenJDK19U-jdk_x86-32_windows_hotspot_2023-02-25-17-31.zip",
|
|
"hash": "84b637b12ae0a2b3f469b6529869b5ef790af1485844d1b42c8c5d803be2e5b9"
|
|
}
|
|
},
|
|
"extract_to": "tmp",
|
|
"installer": {
|
|
"script": [
|
|
"(Get-ChildItem -Directory \"$dir\\tmp\").FullName | % { Move-Item \"$_\\*\" \"$dir\" }",
|
|
"Remove-Item -Recurse \"$dir\\tmp\""
|
|
]
|
|
},
|
|
"env_add_path": "bin",
|
|
"env_set": {
|
|
"JAVA_HOME": "$dir"
|
|
},
|
|
"checkver": {
|
|
"url": "https://api.adoptium.net/v3/assets/feature_releases/19/ea?jvm_impl=hotspot&heap_size=normal&os=windows&architecture=x64&image_type=jdk&project=jdk&vendor=eclipse&page_size=1&sort_order=DESC",
|
|
"script": [
|
|
"$ver = (json_path $page $..version_data.semver).replace('+', '-').replace('-beta','')",
|
|
"$link = (json_path $page $..release_link).replace('%2B', '+')",
|
|
"$name = json_path $page $..binaries[0].package.name",
|
|
"Write-Output \"$ver $link $name\""
|
|
],
|
|
"regex": "(?<ver>.*?) https://github.com/(?<link>.*?)/tag/(?<tag>.*?) (?<name>(?<prefix>OpenJDK[\\dU]*-[dejkr]{3})_x64_(?<suffix>.*))",
|
|
"replace": "${ver}"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://github.com/$matchLink/download/$matchTag/$matchName"
|
|
},
|
|
"32bit": {
|
|
"url": "https://github.com/$matchLink/download/$matchTag/$matchPrefix_x86-32_$matchSuffix"
|
|
}
|
|
},
|
|
"hash": {
|
|
"url": "$url.sha256.txt",
|
|
"find": "^([a-fA-F0-9]+)\\s"
|
|
}
|
|
}
|
|
}
|