From 298241762463420d3244e8fc266a8419e19bb3c5 Mon Sep 17 00:00:00 2001 From: linsui <36977733+linsui@users.noreply.github.com> Date: Tue, 20 Aug 2019 05:05:54 +0800 Subject: [PATCH] Erlang: Extract first to avoid sudo (#322) * Erlang: Extract first to avoid sudo * Update erlang.json --- bucket/erlang.json | 57 +++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/bucket/erlang.json b/bucket/erlang.json index 990e63f6fa..e142646794 100644 --- a/bucket/erlang.json +++ b/bucket/erlang.json @@ -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" + } + } }