mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-12-18 21:31:21 +00:00
rtools: Add version 3.5.0.4 (#542)
Co-Authored-By: Hsiao-nan Cheung <niheaven@gmail.com>
This commit is contained in:
parent
124c0c6a60
commit
b55b4ce88a
40
bucket/rtools.json
Normal file
40
bucket/rtools.json
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
"homepage": "https://cloud.r-project.org/bin/windows/Rtools",
|
||||
"description": "Tools for building packages for R under Microsoft Windows, or for building R itself.",
|
||||
"version": "3.5.0.4",
|
||||
"url": "https://cloud.r-project.org/bin/windows/Rtools/Rtools35.exe",
|
||||
"hash": "18fd63bb9c903e1f9bfce5c9a2600bd24213295760592dbc130b73a61e9d9414",
|
||||
"innosetup": true,
|
||||
"installer": {
|
||||
"script": [
|
||||
"'r', 'mro' | ForEach-Object {",
|
||||
" if (Test-Path (appdir $_ $global)) {",
|
||||
" $renvloc = (versiondir $_ (current_version $_ $global) $global) + '\\etc\\Renviron.site'",
|
||||
" if (Test-Path $renvloc) {",
|
||||
" $renv = Get-Content $renvloc -Encoding ASCII",
|
||||
" } else {",
|
||||
" $renv = @()",
|
||||
" }",
|
||||
" if ($architecture -eq '32bit') {",
|
||||
" $rtoolspath = \"$dir\\bin;$dir\\mingw_32\\bin\"",
|
||||
" } else {",
|
||||
" $rtoolspath = \"$dir\\bin;$dir\\mingw_64\\bin\"",
|
||||
" }",
|
||||
" if ($renv -cmatch 'PATH=') {",
|
||||
" $renv = $renv -replace 'PATH=\"(.*)', 'PATH=\"$rtoolspath;$1'",
|
||||
" } else {",
|
||||
" $renv += '\r\nPATH=\"' + $rtoolspath + ';${PATH}\"'",
|
||||
" }",
|
||||
" $renv | Set-Content $renvloc -Encoding ASCII",
|
||||
" }",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"checkver": {
|
||||
"url": "https://cloud.r-project.org/bin/windows/Rtools/VERSION.txt",
|
||||
"regex": "([\\d.]+)"
|
||||
},
|
||||
"autoupdate": {
|
||||
"url": "https://cloud.r-project.org/bin/windows/Rtools/Rtools$majorVersion$minorVersion.exe"
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user