mro: Change hash extract method (#3016)

This commit is contained in:
Hsiao-nan Cheung 2019-01-21 18:43:02 +08:00 committed by Richard Kuhnt
parent af03374848
commit 9d223a50d2

View File

@ -30,7 +30,6 @@
] ]
} }
}, },
"notes": [ "notes": [
"You'll need to type 'r.ps1' or 'r.cmd' to run MRO, because in Powershell 'r' runs the last command. Alternatively 'rterm' can be used to start the interactive R terminal session.", "You'll need to type 'r.ps1' or 'r.cmd' to run MRO, because in Powershell 'r' runs the last command. Alternatively 'rterm' can be used to start the interactive R terminal session.",
"", "",
@ -50,8 +49,9 @@
"64bit": { "64bit": {
"url": "https://mran.blob.core.windows.net/install/mro/$version/microsoft-r-open-$version.exe#/mro.exe", "url": "https://mran.blob.core.windows.net/install/mro/$version/microsoft-r-open-$version.exe#/mro.exe",
"hash": { "hash": {
"url": "https://mranapi.azurewebsites.net/api/download", "mode": "json",
"regex": "$basename.+?([A-Fa-f\\d]{64})" "jsonpath": "$..versions[?(@.downloadText == '$basename')].sha256",
"url": "https://mranapi.azurewebsites.net/api/download"
} }
} }
} }