Phil Eaton 435f6c824d
r|rtools: Update to 4.2.x (#3530)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2022-05-07 11:25:15 +08:00

52 lines
1.9 KiB
JSON

{
"version": "4.2.5168.5107",
"description": "Tools for building packages for R under Microsoft Windows, or for building R itself.",
"homepage": "https://cloud.r-project.org/bin/windows/Rtools",
"license": "BSD-3-Clause",
"notes": [
"For R 3.3.x to 3.6.x, please use 'versions/rtools35'.",
"For R 4.0.x to 4.1.x, please use 'versions/rtools40'."
],
"architecture": {
"64bit": {
"url": "https://cloud.r-project.org/bin/windows/Rtools/rtools42/files/rtools42-5168-5107.exe",
"hash": "f649229c94d4bf7f82b42856559a8e54e7b1962fd80e4979fba884044cc46c96"
}
},
"innosetup": true,
"installer": {
"script": [
"if (Test-Path 'C:\\rtools42') {",
" if ($null -eq (Get-Item 'C:\\rtools42').LinkType) {",
" Rename-Item -Path 'C:\\rtools42' -NewName 'rtools42.old' -Force",
" } else {",
" Remove-Item -Path 'C:\\rtools42' -Force",
" }",
"}",
"New-Item -Path 'C:\\rtools42' -Target \"$dir\" -ItemType Junction | Out-Null"
]
},
"uninstaller": {
"script": [
"if ((Test-Path 'C:\\rtools42') -and ($null -ne (Get-Item 'C:\\rtools42').LinkType)) {",
" Remove-Item -Path 'C:\\rtools42' -Force",
"}",
"if (Test-Path 'C:\\rtools42.old') {",
" Rename-Item -Path 'C:\\rtools42.old' -NewName 'rtools42' -Force",
"}"
]
},
"checkver": {
"url": "https://cloud.r-project.org/bin/windows/Rtools/rtools42/files/",
"regex": ">rtools42\\-(\\d+)\\-(\\d+).exe<",
"replace": "4.2.${1}.${2}"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://cloud.r-project.org/bin/windows/Rtools/rtools42/files/rtools42-$match1-$match2.exe"
}
}
}
}