-
Notifications
You must be signed in to change notification settings - Fork 335
/
Copy pathinstall-asdf.sh
executable file
·30 lines (22 loc) · 1014 Bytes
/
install-asdf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
printf "Installing All Dependencies...\n";
sudo apt-get install gcc jq clang curl wget llvm chrony g++ -y
# Clone the asdf repository
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.13.1
# Add asdf to the current shell session
. "$HOME/.asdf/asdf.sh" >> $HOME/.bashrc
. "$HOME/.asdf/completions/asdf.bash" >> $HOME/.bashrc
# Source the updated .bashrc
source $HOME/.bashrc
# Display a message indicating successful installation
echo "asdf-vm installed successfully."
# Download Golang binary using asdf-vm
asdf plugin add golang https://github.com/asdf-community/asdf-golang.git
asdf install golang 1.21.3
asdf global golang 1.21.3
# Installing eth2-val-tools to adding new mnemonics
go install github.com/protolambda/eth2-val-tools@latest
go install github.com/wealdtech/ethereal@latest
# Move eth2-val-tools
sudo mv $HOME/.asdf/installs/golang/1.21.3/packages/bin/eth2-val-tools /usr/local/bin
sudo mv $HOME/.asdf/installs/golang/1.21.3/packages/bin/ethereal /usr/local/bin