mirror of
https://github.com/ScoopInstaller/Java.git
synced 2026-08-03 09:39:21 +08:00
46 lines
1.7 KiB
JSON
46 lines
1.7 KiB
JSON
{
|
|
"description": "The Microsoft Build of OpenJDK is a new no-cost long-term supported distribution and Microsoft's new way to collaborate and contribute to the Java ecosystem",
|
|
"homepage": "https://www.microsoft.com/openjdk/",
|
|
"version": "25.0.4",
|
|
"license": "GPL-2.0-only WITH Classpath-exception-2.0",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://aka.ms/download-jdk/microsoft-jdk-25.0.4-windows-x64.zip",
|
|
"hash": "54ba13f3ef80887fa74708b2a32daaae6262517ba68433d850bb4b426343172b"
|
|
},
|
|
"arm64": {
|
|
"url": "https://aka.ms/download-jdk/microsoft-jdk-25.0.4-windows-aarch64.zip",
|
|
"hash": "9496942df521995517b86a0148912b250e503e30660a1ff3feb37a76013e505a"
|
|
}
|
|
},
|
|
"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://learn.microsoft.com/en-us/java/openjdk/download",
|
|
"regex": "(?<ms>microsoft-jdk-((?<ver>25[\\d.]*?).(?<build>[\\d]+).[\\d]+)-windows-x64).zip"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://aka.ms/download-jdk/microsoft-jdk-$version-windows-x64.zip"
|
|
},
|
|
"arm64": {
|
|
"url": "https://aka.ms/download-jdk/microsoft-jdk-$version-windows-aarch64.zip"
|
|
}
|
|
},
|
|
"hash": {
|
|
"url": "$url.sha256sum.txt"
|
|
},
|
|
"extract_dir": "jdk-$matchVer+$matchBuild"
|
|
}
|
|
}
|