add bun installer
ci/woodpecker/pr/ci Pipeline was successful Details

This commit is contained in:
OCram85 2023-12-14 09:56:57 +01:00
parent 02ee121148
commit f91223ac3e
3 changed files with 15 additions and 2 deletions

View File

@ -199,6 +199,7 @@ This helps reducing the image size.
dotnet Installs latest LTS dotnet core sdk + runtime.
gitea Installs gitea tools like the changelog generator.
golang Installs golang 1.19.3.
bun Installs latest bun version.
nodejs Installs latest NodeJs LTS version using Volta.
volta Installs Volta as NodeJS version manager.
powershell Installs latest PowerShell LTS version.

14
arkanum
View File

@ -29,7 +29,8 @@ function showHelp() {
docker-cli Installs the latest docker-cli.
dotnet Installs latest LTS dotnet core sdk + runtime.
gitea Installs gitea tools like changelog and tea.
golang Installs golang 1.19.3.
golang Installs golang 1.21.5.
bun Installs latest bun version.
nodejs Installs latest NodeJs LTS version using Volta.
volta Installs Volta as NodeJS version manager.
powershell Installs latest PowerShell LTS version.
@ -138,6 +139,15 @@ function instGoLang() {
say "Please reload bash profile to finalize." "GoLang"
}
function instBun() {
say "Installing Bun binaries..." "Bun"
curl -#fSL https://bun.sh/install | bash
say "Adding bun binary to profile..." "Bun"
echo 'export BUN_INSTALL=$HOME/.bun' | sudo tee -a /etc/bash.bashrc > /dev/null
echo 'export PATH=$BUN_INSTALL/bin:$PATH' | sudo tee -a /etc/bash.bashrc > /dev/null
say "done." "bun"
}
function instNodeJs() {
say "Installing NodeJS LTS via Volta..." "NodeJS"
volta install node@lts
@ -311,6 +321,8 @@ function main() {
instDotNet
elif [[ "$2" == "golang" ]]; then
instGoLang "$3"
elif [[ "$2" == "bun" ]]; then
instBun
elif [[ "$2" == "nodejs" ]]; then
instVolta
instNodeJs

View File

@ -24,7 +24,7 @@ function _command_completions() {
;;
install)
# shellcheck disable=2207,SC2086
COMPREPLY=($(compgen -W "docker-cli dotnet golang nodejs volta powershell gitea" -- ${cur}))
COMPREPLY=($(compgen -W "docker-cli dotnet golang bun nodejs volta powershell gitea" -- ${cur}))
;;
help)
;;