mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-23 07:06:07 +00:00
Use new domain repo.hex.pm => builds.hex.pm (#192)
This commit is contained in:
committed by
GitHub
parent
2595a954a1
commit
c2e02f777c
@@ -9,7 +9,7 @@ $FILE_OUTPUT="elixir.zip"
|
||||
$DIR_FOR_BIN=".setup-beam/elixir"
|
||||
|
||||
$ProgressPreference="SilentlyContinue"
|
||||
Invoke-WebRequest "https://repo.hex.pm/builds/elixir/${FILE_INPUT}" -OutFile "${FILE_OUTPUT}"
|
||||
Invoke-WebRequest "https://builds.hex.pm/builds/elixir/${FILE_INPUT}" -OutFile "${FILE_OUTPUT}"
|
||||
$ProgressPreference="Continue"
|
||||
New-Item "${DIR_FOR_BIN}" -ItemType Directory | Out-Null
|
||||
$ProgressPreference="SilentlyContinue"
|
||||
|
||||
@@ -9,7 +9,7 @@ FILE_INPUT="${VSN}.zip"
|
||||
FILE_OUTPUT=elixir.zip
|
||||
DIR_FOR_BIN=.setup-beam/elixir
|
||||
|
||||
wget -q -O "${FILE_OUTPUT}" "https://repo.hex.pm/builds/elixir/${FILE_INPUT}"
|
||||
wget -q -O "${FILE_OUTPUT}" "https://builds.hex.pm/builds/elixir/${FILE_INPUT}"
|
||||
mkdir -p "${DIR_FOR_BIN}"
|
||||
unzip -q -o -d "${DIR_FOR_BIN}" "${FILE_OUTPUT}"
|
||||
echo "Installed Elixir version follows"
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ FILE_INPUT="${VSN}.tar.gz"
|
||||
FILE_OUTPUT=otp.tar.gz
|
||||
DIR_FOR_BIN=.setup-beam/otp
|
||||
|
||||
wget -q -O "${FILE_OUTPUT}" "https://repo.hex.pm/builds/otp/${OS}/${FILE_INPUT}"
|
||||
wget -q -O "${FILE_OUTPUT}" "https://builds.hex.pm/builds/otp/${OS}/${FILE_INPUT}"
|
||||
mkdir -p "${DIR_FOR_BIN}"
|
||||
tar zxf "${FILE_OUTPUT}" -C "${DIR_FOR_BIN}" --strip-components=1
|
||||
"${DIR_FOR_BIN}/Install" -minimal "$(pwd)/${DIR_FOR_BIN}"
|
||||
|
||||
+2
-2
@@ -223,7 +223,7 @@ async function getOTPVersions(osVersion) {
|
||||
let originListing
|
||||
let pageIdxs
|
||||
if (process.platform === 'linux') {
|
||||
originListing = `https://repo.hex.pm/builds/otp/${osVersion}/builds.txt`
|
||||
originListing = `https://builds.hex.pm/builds/otp/${osVersion}/builds.txt`
|
||||
pageIdxs = [null]
|
||||
} else if (process.platform === 'win32') {
|
||||
originListing =
|
||||
@@ -263,7 +263,7 @@ async function getOTPVersions(osVersion) {
|
||||
|
||||
async function getElixirVersions() {
|
||||
const elixirVersionsListings = await get(
|
||||
'https://repo.hex.pm/builds/elixir/builds.txt',
|
||||
'https://builds.hex.pm/builds/elixir/builds.txt',
|
||||
[null],
|
||||
)
|
||||
const otpVersionsForElixirMap = new Map()
|
||||
|
||||
Reference in New Issue
Block a user