Last active
May 18, 2018 14:52
-
-
Save Ljzn/97f30e4dfeb9ee1ecf4c16f78d808f09 to your computer and use it in GitHub Desktop.
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
NEO_VERSION=2.7.5 | |
NEO_DOWNLOAD_URL=https://github.com/neo-project/neo-cli/releases/download/v$NEO_VERSION/neo-cli-linux-x64.zip | |
NEO_BLOCK_URL=http://static.neo.org/client/chain.acc.test.zip | |
# dotnet | |
sudo apt-get install apt-transport-https | |
sudo apt-get update | |
sudo apt-get install dotnet-sdk-2.1.200 | |
# neo-cli deps | |
apt-get update && \ | |
apt-get install -y --no-install-recommends unzip curl libleveldb-dev sqlite3 libsqlite3-dev libunwind8-dev && \ | |
rm -rf /var/lib/apt/lists/* | |
curl -SL $NEO_DOWNLOAD_URL --output neo-cli.zip && \ | |
unzip neo-cli.zip neo-cli/* && \ | |
rm neo-cli.zip | |
# quick sync block | |
curl -SL $NEO_BLOCK_URL --output chain.acc.zip && \ | |
mv chain.acc.zip neo-cli/ | |
mv neo-cli/config.testnet.json neo-cli/config.json | |
mv neo-cli/protocol.testnet.json neo-cli/protocol.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment