Erlang: Extract first to avoid sudo (#322)

* Erlang: Extract first to avoid sudo

* Update erlang.json
This commit is contained in:
linsui 2019-08-20 05:05:54 +08:00 committed by Ross Smith II
parent 40883cdb41
commit 2982417624

View File

@ -5,14 +5,18 @@
"license": "Apache-2.0",
"architecture": {
"64bit": {
"url": "http://erlang.org/download/otp_win64_22.0.exe",
"hash": "0d34ee8eed0fee9245e15d8ee08131099ffe3f8d6a602a58c3581ffc08191ca1"
"url": "http://erlang.org/download/otp_win64_22.0.exe#/dl.7z",
"hash": "md5:f457e8aeda344a6743b2862feab16871"
},
"32bit": {
"url": "http://erlang.org/download/otp_win32_22.0.exe",
"hash": "baf97520a774a7f6514ff97a002f88bc83844df9f098235b0d5e0c944b3ccac3"
"url": "http://erlang.org/download/otp_win32_22.0.exe#/dl.7z",
"hash": "md5:2641d07ea5f6e723d56457a5d2ba82c2"
}
},
"installer": {
"file": "Install.exe",
"args": "-sasl"
},
"bin": [
"bin\\erl.exe",
"bin\\erlc.exe",
@ -21,34 +25,29 @@
"env_set": {
"ERLANG_HOME": "$dir"
},
"installer": {
"args": [
"/S",
"/D=$dir"
]
},
"uninstaller": {
"file": "Uninstall.exe",
"args": "/S"
},
"checkver": {
"url": "https://www.erlang.org/downloads",
"re": "DOWNLOAD\\s+OTP ([\\d.]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "http://erlang.org/download/otp_win64_$version.exe"
},
"32bit": {
"url": "http://erlang.org/download/otp_win32_$version.exe"
}
}
},
"shortcuts": [
[
"bin\\werl.exe",
"Erlang"
]
]
],
"post_install": "Remove-Item \"$dir\\`$PLUGINSDIR\" -Force -Recurse",
"checkver": {
"url": "https://www.erlang.org/downloads",
"regex": "DOWNLOAD\\s+OTP ([\\d.]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "http://erlang.org/download/otp_win64_$version.exe#/dl.7z"
},
"32bit": {
"url": "http://erlang.org/download/otp_win32_$version.exe#/dl.7z"
}
},
"hash": {
"url": "$baseurl/MD5",
"regex": "MD5\\($basename\\)= $md5"
}
}
}