Forked from CodeIter/termux-pacman-glibc-setup.sh
Last active
October 25, 2024 02:53
-
-
Save ZerxZ/705001fd462e98d1096a31290000e2f1 to your computer and use it in GitHub Desktop.
Setup `glibc-runner` with pacman on Termux and install Deno.JS and Bun.JS .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env -S bash -xeuo pipefail | |
| set -xeuo pipefail | |
| # If you already have a PRoot distro set up you can just login to it and skip to the 3rd command. | |
| apt update && apt install proot-distro -y && proot-distro install debian && proot-distro login debian | |
| apt update | |
| curl -fsSL https://moonrepo.dev/install/proto.sh | bash | |
| export PATH="${PATH}:${HOME}/.proto/bin" | |
| source ~/.bashrc | |
| apt install git | |
| proto install bun | |
| proto install node | |
| proto install npm | |
| proto install yarn | |
| mkdir ~/.npm-global | |
| mkdir ~/.bun-global | |
| mkdir ~/.bun-cache | |
| npm config set prefix '~/.npm-global' | |
| cat - << EOF > ${HOME}/"bunfig.toml" | |
| [install] | |
| globalDir = "${HOME}/.bun-global" | |
| [install.cache] | |
| dir = "${HOME}/.bun-cache" | |
| EOF | |
| export PATH="${PATH}:${HOME}/bun-global/bin:${HOME}/.bun/bin:${HOME}/.bun-cache:${HOME}//.npm-global" | |
| source ~/.bashrc | |
| bun --version | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.