openjdk20: Add version 20-5-ea (#408)

This commit is contained in:
Nguyễn Mạnh Hùng 2022-07-13 00:27:35 +07:00 committed by GitHub
parent c052b02295
commit 68f1160146
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 1 deletions

View File

@ -15,7 +15,7 @@
"JAVA_HOME": "$dir"
},
"checkver": {
"url": "https://jdk.java.net/19",
"url": "https://jdk.java.net/20",
"re": "/(?<type>early_access|GA)/(?<path>jdk(?<major>[\\d.]+)(?:.*)?/(?<build>[\\d]+)(?:/GPL|/binaries)?)/(?<file>openjdk-(?<version>[\\d.]+)(?<ea>-ea)?(?:\\+[\\d]+)?_windows-x64_bin.(zip|tar.gz))",
"replace": "${version}-${build}${ea}"
},

32
bucket/openjdk20.json Normal file
View File

@ -0,0 +1,32 @@
{
"description": "Official production-ready open-source builds of OpenJDK 20",
"homepage": "https://jdk.java.net/20",
"version": "20-5-ea",
"license": "GPL-2.0-only WITH Classpath-exception-2.0",
"architecture": {
"64bit": {
"url": "https://download.java.net/java/early_access/jdk20/5/GPL/openjdk-20-ea+5_windows-x64_bin.zip",
"hash": "4d35001bc8934fc139c19f7b9d1584aacc81f395d24890094196b54d9f7e787a"
}
},
"extract_dir": "jdk-20",
"env_add_path": "bin",
"env_set": {
"JAVA_HOME": "$dir"
},
"checkver": {
"re": "/(?<type>early_access|GA)/(?<path>jdk(?<major>[\\d.]+)(?:.*)?/(?<build>[\\d]+)(?:/GPL|/binaries)?)/(?<file>openjdk-(?<version>[\\d.]+)(?<ea>-ea)?(?:\\+[\\d]+)?_windows-x64_bin.(zip|tar.gz))",
"replace": "${version}-${build}${ea}"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://download.java.net/java/$matchType/$matchPath/$matchFile"
}
},
"hash": {
"url": "$url.sha256"
},
"extract_dir": "jdk-$matchVersion"
}
}