mirror of
https://github.com/erlef/setup-beam.git
synced 2026-08-01 03:26:08 +00:00
Add Gleam (#67)
This commit is contained in:
committed by
GitHub
parent
4fbbcf2e6c
commit
c988d89031
@@ -32,6 +32,21 @@ async function installElixir(elixirVersion) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Install Gleam.
|
||||
*
|
||||
* @param {string} gleamVersion
|
||||
*/
|
||||
async function installGleam(gleamVersion) {
|
||||
const OS = process.platform
|
||||
if (OS === 'linux') {
|
||||
await exec(path.join(__dirname, 'install-gleam.sh'), [gleamVersion])
|
||||
} else if (OS === 'win32') {
|
||||
const script = path.join(__dirname, 'install-gleam.ps1')
|
||||
await exec(`pwsh.exe ${script} -VSN:${gleamVersion}`)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Install rebar3.
|
||||
*
|
||||
@@ -58,6 +73,7 @@ function checkPlatform() {
|
||||
module.exports = {
|
||||
installOTP,
|
||||
installElixir,
|
||||
installGleam,
|
||||
installRebar3,
|
||||
checkPlatform,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user