generated from Templates/Baseline
add bun installer (#81)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
### 📖 Summary - adds bun - bump golang version ### 📑 Test Plan ✅ CI pipeline tests (Default) ### 💬 Details _No response_ ### 📚 Additional Notes _No response_ Reviewed-on: CodeServer/arkanum#81 Co-authored-by: OCram85 <marco.blessing@googlemail.com> Co-committed-by: OCram85 <marco.blessing@googlemail.com>
This commit is contained in:
parent
e85a222bf1
commit
d3c9186ccf
@ -199,6 +199,7 @@ This helps reducing the image size.
|
|||||||
dotnet Installs latest LTS dotnet core sdk + runtime.
|
dotnet Installs latest LTS dotnet core sdk + runtime.
|
||||||
gitea Installs gitea tools like the changelog generator.
|
gitea Installs gitea tools like the changelog generator.
|
||||||
golang Installs golang 1.19.3.
|
golang Installs golang 1.19.3.
|
||||||
|
bun Installs latest bun version.
|
||||||
nodejs Installs latest NodeJs LTS version using Volta.
|
nodejs Installs latest NodeJs LTS version using Volta.
|
||||||
volta Installs Volta as NodeJS version manager.
|
volta Installs Volta as NodeJS version manager.
|
||||||
powershell Installs latest PowerShell LTS version.
|
powershell Installs latest PowerShell LTS version.
|
||||||
|
21
arkanum
21
arkanum
@ -29,7 +29,8 @@ function showHelp() {
|
|||||||
docker-cli Installs the latest docker-cli.
|
docker-cli Installs the latest docker-cli.
|
||||||
dotnet Installs latest LTS dotnet core sdk + runtime.
|
dotnet Installs latest LTS dotnet core sdk + runtime.
|
||||||
gitea Installs gitea tools like changelog and tea.
|
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.
|
nodejs Installs latest NodeJs LTS version using Volta.
|
||||||
volta Installs Volta as NodeJS version manager.
|
volta Installs Volta as NodeJS version manager.
|
||||||
powershell Installs latest PowerShell LTS version.
|
powershell Installs latest PowerShell LTS version.
|
||||||
@ -138,6 +139,21 @@ function instGoLang() {
|
|||||||
say "Please reload bash profile to finalize." "GoLang"
|
say "Please reload bash profile to finalize." "GoLang"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function instBun() {
|
||||||
|
say "Installing Bun requirements..." "Bun"
|
||||||
|
sudo -E apt-get update > /dev/null
|
||||||
|
sudo -E apt-get install --no-install-recommends -y \
|
||||||
|
unzip
|
||||||
|
sudo -E apt-get clean
|
||||||
|
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"
|
||||||
|
say "Please reload bash profile to finalize." "Bun"
|
||||||
|
}
|
||||||
|
|
||||||
function instNodeJs() {
|
function instNodeJs() {
|
||||||
say "Installing NodeJS LTS via Volta..." "NodeJS"
|
say "Installing NodeJS LTS via Volta..." "NodeJS"
|
||||||
volta install node@lts
|
volta install node@lts
|
||||||
@ -220,6 +236,7 @@ function instCodeExtension() {
|
|||||||
|
|
||||||
say "done." "Extension"
|
say "done." "Extension"
|
||||||
}
|
}
|
||||||
|
|
||||||
function setCodeSettings() {
|
function setCodeSettings() {
|
||||||
CODEFILE="$HOME/data/User/settings.json"
|
CODEFILE="$HOME/data/User/settings.json"
|
||||||
|
|
||||||
@ -311,6 +328,8 @@ function main() {
|
|||||||
instDotNet
|
instDotNet
|
||||||
elif [[ "$2" == "golang" ]]; then
|
elif [[ "$2" == "golang" ]]; then
|
||||||
instGoLang "$3"
|
instGoLang "$3"
|
||||||
|
elif [[ "$2" == "bun" ]]; then
|
||||||
|
instBun
|
||||||
elif [[ "$2" == "nodejs" ]]; then
|
elif [[ "$2" == "nodejs" ]]; then
|
||||||
instVolta
|
instVolta
|
||||||
instNodeJs
|
instNodeJs
|
||||||
|
@ -24,7 +24,7 @@ function _command_completions() {
|
|||||||
;;
|
;;
|
||||||
install)
|
install)
|
||||||
# shellcheck disable=2207,SC2086
|
# 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)
|
help)
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user