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
Vendored
+2
-2
@@ -7416,7 +7416,7 @@ async function getOTPVersions(osVersion) {
|
|||||||
let originListing
|
let originListing
|
||||||
let pageIdxs
|
let pageIdxs
|
||||||
if (process.platform === 'linux') {
|
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]
|
pageIdxs = [null]
|
||||||
} else if (process.platform === 'win32') {
|
} else if (process.platform === 'win32') {
|
||||||
originListing =
|
originListing =
|
||||||
@@ -7456,7 +7456,7 @@ async function getOTPVersions(osVersion) {
|
|||||||
|
|
||||||
async function getElixirVersions() {
|
async function getElixirVersions() {
|
||||||
const elixirVersionsListings = await get(
|
const elixirVersionsListings = await get(
|
||||||
'https://repo.hex.pm/builds/elixir/builds.txt',
|
'https://builds.hex.pm/builds/elixir/builds.txt',
|
||||||
[null],
|
[null],
|
||||||
)
|
)
|
||||||
const otpVersionsForElixirMap = new Map()
|
const otpVersionsForElixirMap = new Map()
|
||||||
|
|||||||
Vendored
+1
-1
@@ -9,7 +9,7 @@ $FILE_OUTPUT="elixir.zip"
|
|||||||
$DIR_FOR_BIN=".setup-beam/elixir"
|
$DIR_FOR_BIN=".setup-beam/elixir"
|
||||||
|
|
||||||
$ProgressPreference="SilentlyContinue"
|
$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"
|
$ProgressPreference="Continue"
|
||||||
New-Item "${DIR_FOR_BIN}" -ItemType Directory | Out-Null
|
New-Item "${DIR_FOR_BIN}" -ItemType Directory | Out-Null
|
||||||
$ProgressPreference="SilentlyContinue"
|
$ProgressPreference="SilentlyContinue"
|
||||||
|
|||||||
Vendored
+1
-1
@@ -9,7 +9,7 @@ FILE_INPUT="${VSN}.zip"
|
|||||||
FILE_OUTPUT=elixir.zip
|
FILE_OUTPUT=elixir.zip
|
||||||
DIR_FOR_BIN=.setup-beam/elixir
|
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}"
|
mkdir -p "${DIR_FOR_BIN}"
|
||||||
unzip -q -o -d "${DIR_FOR_BIN}" "${FILE_OUTPUT}"
|
unzip -q -o -d "${DIR_FOR_BIN}" "${FILE_OUTPUT}"
|
||||||
echo "Installed Elixir version follows"
|
echo "Installed Elixir version follows"
|
||||||
|
|||||||
Vendored
+1
-1
@@ -10,7 +10,7 @@ FILE_INPUT="${VSN}.tar.gz"
|
|||||||
FILE_OUTPUT=otp.tar.gz
|
FILE_OUTPUT=otp.tar.gz
|
||||||
DIR_FOR_BIN=.setup-beam/otp
|
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}"
|
mkdir -p "${DIR_FOR_BIN}"
|
||||||
tar zxf "${FILE_OUTPUT}" -C "${DIR_FOR_BIN}" --strip-components=1
|
tar zxf "${FILE_OUTPUT}" -C "${DIR_FOR_BIN}" --strip-components=1
|
||||||
"${DIR_FOR_BIN}/Install" -minimal "$(pwd)/${DIR_FOR_BIN}"
|
"${DIR_FOR_BIN}/Install" -minimal "$(pwd)/${DIR_FOR_BIN}"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ $FILE_OUTPUT="elixir.zip"
|
|||||||
$DIR_FOR_BIN=".setup-beam/elixir"
|
$DIR_FOR_BIN=".setup-beam/elixir"
|
||||||
|
|
||||||
$ProgressPreference="SilentlyContinue"
|
$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"
|
$ProgressPreference="Continue"
|
||||||
New-Item "${DIR_FOR_BIN}" -ItemType Directory | Out-Null
|
New-Item "${DIR_FOR_BIN}" -ItemType Directory | Out-Null
|
||||||
$ProgressPreference="SilentlyContinue"
|
$ProgressPreference="SilentlyContinue"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ FILE_INPUT="${VSN}.zip"
|
|||||||
FILE_OUTPUT=elixir.zip
|
FILE_OUTPUT=elixir.zip
|
||||||
DIR_FOR_BIN=.setup-beam/elixir
|
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}"
|
mkdir -p "${DIR_FOR_BIN}"
|
||||||
unzip -q -o -d "${DIR_FOR_BIN}" "${FILE_OUTPUT}"
|
unzip -q -o -d "${DIR_FOR_BIN}" "${FILE_OUTPUT}"
|
||||||
echo "Installed Elixir version follows"
|
echo "Installed Elixir version follows"
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ FILE_INPUT="${VSN}.tar.gz"
|
|||||||
FILE_OUTPUT=otp.tar.gz
|
FILE_OUTPUT=otp.tar.gz
|
||||||
DIR_FOR_BIN=.setup-beam/otp
|
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}"
|
mkdir -p "${DIR_FOR_BIN}"
|
||||||
tar zxf "${FILE_OUTPUT}" -C "${DIR_FOR_BIN}" --strip-components=1
|
tar zxf "${FILE_OUTPUT}" -C "${DIR_FOR_BIN}" --strip-components=1
|
||||||
"${DIR_FOR_BIN}/Install" -minimal "$(pwd)/${DIR_FOR_BIN}"
|
"${DIR_FOR_BIN}/Install" -minimal "$(pwd)/${DIR_FOR_BIN}"
|
||||||
|
|||||||
+2
-2
@@ -223,7 +223,7 @@ async function getOTPVersions(osVersion) {
|
|||||||
let originListing
|
let originListing
|
||||||
let pageIdxs
|
let pageIdxs
|
||||||
if (process.platform === 'linux') {
|
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]
|
pageIdxs = [null]
|
||||||
} else if (process.platform === 'win32') {
|
} else if (process.platform === 'win32') {
|
||||||
originListing =
|
originListing =
|
||||||
@@ -263,7 +263,7 @@ async function getOTPVersions(osVersion) {
|
|||||||
|
|
||||||
async function getElixirVersions() {
|
async function getElixirVersions() {
|
||||||
const elixirVersionsListings = await get(
|
const elixirVersionsListings = await get(
|
||||||
'https://repo.hex.pm/builds/elixir/builds.txt',
|
'https://builds.hex.pm/builds/elixir/builds.txt',
|
||||||
[null],
|
[null],
|
||||||
)
|
)
|
||||||
const otpVersionsForElixirMap = new Map()
|
const otpVersionsForElixirMap = new Map()
|
||||||
|
|||||||
Reference in New Issue
Block a user