generated from ScoopInstaller/BucketTemplate
/
oraclejre8.json
37 lines (37 loc) · 1.61 KB
/
oraclejre8.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"description": "Oracle Java Platform, Standard Edition Runtime Environment (JRE)",
"homepage": "https://www.java.com/",
"version": "8u411",
"license": "https://www.oracle.com/technetwork/java/javase/terms/license/javase-license.html",
"architecture": {
"64bit": {
"url": "https://javadl.oracle.com/webapps/download/AutoDL?BundleId=249852_43d62d619be4e416215729597d70b8ac#/dl.tar.gz",
"hash": "6f52149d67f535a5f623c5830ef0cd488ce5fa2ded82f08bb3b24d183d88d6b3"
}
},
"extract_dir": "jre1.8.0_411",
"env_add_path": "bin",
"env_set": {
"JAVA_HOME": "$dir"
},
"checkver": {
"url": "https://orasites-prodapp.cec.ocp.oraclecloud.com/content/published/api/v1.1/items/COREFA37E773006D4BE183DB8D7F504C5718?channelToken=1f7d2611846d4457b213dfc9048724dc",
"script": [
"$ver = json_path $page $.fields.json.latest8Version",
"$secid = json_path $page $.fields.json.secID",
"$win32 = [int](json_path $page $.fields.json.win_offline_bundle) + 1",
"$win64 = [int](json_path $page $.fields.json.win_x64_bundle) + 1",
"Write-Output \"$ver $win32 $win64 $secid\""
],
"regex": "(?<long>(?<ver>[\\d.]+)_(?<build>[\\d]+)) (?<win32b>[\\d]+) (?<win64b>[\\d]+) (?<secid>[\\da-f]{32})",
"replace": "8u${build}"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://javadl.oracle.com/webapps/download/AutoDL?BundleId=$matchWin64b_$matchSecid#/dl.tar.gz"
}
},
"extract_dir": "jre$matchLong"
}
}