-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We replaced github.com/gogo/protobuf with google.golang.org/protobuf so need to align the resources around that.
- Loading branch information
Showing
3 changed files
with
74 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,13 +15,34 @@ sudo apt-get install -y \ | |
python \ | ||
build-essential | ||
|
||
if ! [ -x "$(command -v curl)" ]; then echo "curl installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v wget)" ]; then echo "wget installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v git)" ]; then echo "git installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v unzip)" ]; then echo "unzip installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v jq)" ]; then echo "jq installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v python)" ]; then echo "python installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v make)" ]; then echo "build-essential installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v curl)" ]; then | ||
echo "curl installation failed" | ||
exit 1 | ||
fi | ||
if ! [ -x "$(command -v wget)" ]; then | ||
echo "wget installation failed" | ||
exit 1 | ||
fi | ||
if ! [ -x "$(command -v git)" ]; then | ||
echo "git installation failed" | ||
exit 1 | ||
fi | ||
if ! [ -x "$(command -v unzip)" ]; then | ||
echo "unzip installation failed" | ||
exit 1 | ||
fi | ||
if ! [ -x "$(command -v jq)" ]; then | ||
echo "jq installation failed" | ||
exit 1 | ||
fi | ||
if ! [ -x "$(command -v python)" ]; then | ||
echo "python installation failed" | ||
exit 1 | ||
fi | ||
if ! [ -x "$(command -v make)" ]; then | ||
echo "build-essential installation failed" | ||
exit 1 | ||
fi | ||
|
||
echo "Common tools have been installed successfully!" | ||
|
||
|
@@ -30,8 +51,8 @@ echo "Installing Node.js and NPM..." | |
if ! [ -x "$(command -v nvm)" ]; then | ||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash | ||
|
||
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.profile | ||
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ~/.profile | ||
echo 'export NVM_DIR="$HOME/.nvm"' >>~/.profile | ||
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >>~/.profile | ||
source ~/.profile | ||
fi | ||
|
||
|
@@ -40,8 +61,14 @@ nvm install 11.15.0 | |
nvm alias default 11.15.0 | ||
nvm use default | ||
|
||
if ! [ -x "$(command -v node)" ]; then echo "Node installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v npm)" ]; then echo "NPM installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v node)" ]; then | ||
echo "Node installation failed" | ||
exit 1 | ||
fi | ||
if ! [ -x "$(command -v npm)" ]; then | ||
echo "NPM installation failed" | ||
exit 1 | ||
fi | ||
|
||
echo "Node.js and NPM have been installed successfully!" | ||
|
||
|
@@ -55,11 +82,14 @@ tar -xvf $GOLANG_PACKAGE | |
sudo chown -R root:root ./go | ||
sudo mv go /usr/local | ||
|
||
echo 'GOPATH="$HOME/go"' >> ~/.profile | ||
echo 'PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"' >> ~/.profile | ||
echo 'GOPATH="$HOME/go"' >>~/.profile | ||
echo 'PATH="$PATH:/usr/local/go/bin:$GOPATH/bin"' >>~/.profile | ||
source ~/.profile | ||
|
||
if ! [ -x "$(command -v go)" ]; then echo "Go installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v go)" ]; then | ||
echo "Go installation failed" | ||
exit 1 | ||
fi | ||
|
||
echo "Go has been installed successfully!" | ||
|
||
|
@@ -74,7 +104,10 @@ mkdir ./go-ethereum && tar -xzf $GETH_PACKAGE -C ./go-ethereum --strip-component | |
sudo chown -R root:root ./go-ethereum | ||
sudo mv ./go-ethereum/* /usr/local/bin | ||
|
||
if ! [ -x "$(command -v geth)" ]; then echo "go-ethereum installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v geth)" ]; then | ||
echo "go-ethereum installation failed" | ||
exit 1 | ||
fi | ||
|
||
echo "go-ethereum has been installed successfully!" | ||
|
||
|
@@ -88,7 +121,10 @@ chmod 755 solc-static-linux | |
sudo mv solc-static-linux /usr/local/bin | ||
sudo ln -s -f /usr/local/bin/solc-static-linux /usr/local/bin/solc | ||
|
||
if ! [ -x "$(command -v solc)" ]; then echo "Solidity installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v solc)" ]; then | ||
echo "Solidity installation failed" | ||
exit 1 | ||
fi | ||
|
||
echo "Solidity has been installed successfully!" | ||
|
||
|
@@ -104,17 +140,26 @@ chmod 755 -R ./protoc | |
sudo mv protoc/bin/protoc /usr/local/bin | ||
sudo mv protoc/include/* /usr/local/include | ||
|
||
go install github.com/gogo/protobuf/protoc-gen-gogoslick@latest | ||
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest | ||
|
||
if ! [ -x "$(command -v protoc)" ]; then echo "protoc installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v protoc-gen-gogoslick)" ]; then echo "protoc-gen-gogoslick installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v protoc)" ]; then | ||
echo "protoc installation failed" | ||
exit 1 | ||
fi | ||
if ! [ -x "$(command -v protoc-gen-go)" ]; then | ||
echo "protoc-gen-go installation failed" | ||
exit 1 | ||
fi | ||
|
||
echo "Protobuf has been installed successfully!" | ||
|
||
echo "Installing Truffle..." | ||
|
||
npm install -g [email protected] | ||
|
||
if ! [ -x "$(command -v truffle)" ]; then echo "Truffle installation failed"; exit 1; fi | ||
if ! [ -x "$(command -v truffle)" ]; then | ||
echo "Truffle installation failed" | ||
exit 1 | ||
fi | ||
|
||
echo "Truffle has been installed successfully!" | ||
echo "Truffle has been installed successfully!" |