Created
May 28, 2025 10:52
-
-
Save r0b0t3d/92d9da44fe22190135c71572858a5a69 to your computer and use it in GitHub Desktop.
Setup plugins for asdf
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
#!/bin/bash | |
# Default versions | |
DEFAULT_RUBY="3.2.2" | |
DEFAULT_NODE="20.11.1" | |
# Use args or defaults | |
RUBY_VERSION="${1:-$DEFAULT_RUBY}" | |
NODE_VERSION="${2:-$DEFAULT_NODE}" | |
# Add plugins | |
echo "π Adding asdf plugins..." | |
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git | |
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git | |
# Install Ruby | |
echo "π Installing Ruby $RUBY_VERSION..." | |
asdf install ruby "$RUBY_VERSION" | |
asdf set -u ruby "$RUBY_VERSION" | |
# Install Node.js | |
echo "π© Installing Node.js $NODE_VERSION..." | |
asdf install nodejs "$NODE_VERSION" | |
asdf set -u nodejs "$NODE_VERSION" | |
# Install RubyGems tools | |
echo "π¦ Installing bundler and fastlane..." | |
gem install bundler | |
gem install fastlane | |
# Done | |
echo "β Setup complete!" | |
ruby -v | |
node -v | |
fastlane -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment