mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-27 17:16:07 +00:00
Improve on "Add Windows to the mix" (#52)
* Support more OTP+Windows versions (try to bridge the gap with gleam-lang/setup-erlang that seems to support pre-21 versions) * Merge ci.yml and test.yml * Add Elixir to the Windows mix * Hopefully improve error/warning messages * Adapt the doc.s to the current reality * Add option version-type (loose by default, for compatibility)
This commit is contained in:
committed by
GitHub
parent
82b4475ba2
commit
d8a37f5aac
+3
-3
@@ -13,7 +13,7 @@ async function installOTP(osVersion, otpVersion) {
|
||||
await exec(path.join(__dirname, 'install-otp.sh'), [osVersion, otpVersion])
|
||||
} else if (OS === 'win32') {
|
||||
const script = path.join(__dirname, 'install-otp.ps1')
|
||||
await exec(`powershell.exe ${script} -VSN:${otpVersion}`)
|
||||
await exec(`pwsh.exe ${script} -VSN:${otpVersion}`)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ async function installElixir(elixirVersion) {
|
||||
await exec(path.join(__dirname, 'install-elixir.sh'), [elixirVersion])
|
||||
} else if (OS === 'win32') {
|
||||
const script = path.join(__dirname, 'install-elixir.ps1')
|
||||
await exec(`powershell.exe ${script} ${elixirVersion}`)
|
||||
await exec(`pwsh.exe ${script} -VSN:${elixirVersion}`)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ async function installRebar3(rebar3Version) {
|
||||
await exec(path.join(__dirname, 'install-rebar3.sh'), [rebar3Version])
|
||||
} else if (OS === 'win32') {
|
||||
const script = path.join(__dirname, 'install-rebar3.ps1')
|
||||
await exec(`powershell.exe ${script} -VSN:${rebar3Version}`)
|
||||
await exec(`pwsh.exe ${script} -VSN:${rebar3Version}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user