mirror of
https://github.com/ScoopInstaller/Java.git
synced 2026-08-02 16:09:23 +08:00
41 lines
1.7 KiB
JSON
41 lines
1.7 KiB
JSON
{
|
|
"description": "Eclipse Temurin is a runtime provided by Eclipse Adoptium for general use across the Java ecosystem",
|
|
"homepage": "https://adoptium.net",
|
|
"version": "25.0.4-7.0.LTS",
|
|
"license": "GPL-2.0-only WITH Classpath-exception-2.0",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.4+7/OpenJDK25U-jdk_x64_windows_hotspot_25.0.4_7.zip",
|
|
"hash": "7caab7db43bf4b94a2e6252c699e70d90084f9aa7c943cd3414761fd540937ae"
|
|
}
|
|
},
|
|
"extract_dir": "jdk-25.0.4+7",
|
|
"env_add_path": "bin",
|
|
"env_set": {
|
|
"JAVA_HOME": "$dir"
|
|
},
|
|
"checkver": {
|
|
"url": "https://api.adoptium.net/v3/assets/version/%5B8%2C%29?release_type=ga<s=true&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('+', '-')",
|
|
"$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"
|
|
}
|
|
},
|
|
"hash": {
|
|
"url": "$url.sha256.txt",
|
|
"find": "^([a-fA-F0-9]+)\\s"
|
|
},
|
|
"extract_dir": "$matchTag"
|
|
}
|
|
}
|