-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.sh
executable file
·27 lines (21 loc) · 915 Bytes
/
setup.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
#!/bin/bash
if [-d "ssv-keys"]; then
echo "ssv-keys directory already there"
else
echo "cloning ssv-keys"
git clone https://github.com/bloxapp/ssv-keys.git
rm ssv-keys/package.json
cp ssv/package.json ssv-keys/package.json
npm install --prefix ssv-keys
case "$OSTYPE" in
linux*) npm run package-linux --prefix ssv-keys && cp ssv-keys/bin/linux/ssv-keys-lin ssv/ssv-cli;;
darwin* ) npm run package-macos --prefix ssv-keys && cp ssv-keys/bin/macos/ssv-keys-mac ssv/ssv-cli;;
msys* ) npm run package-win --prefix ssv-keys && cp ssv-keys/bin/win/ssv-keys.exe ssv/ssv-cli.exe;;
cygwin* ) npm run package-win --prefix ssv-keys && cp ssv-keys/bin/win/ssv-keys.exe ssv/ssv-cli.exe;;
esac
fi
echo "setup for ssv keys cli done"
echo "installing dependencies for demo contract"
npm install --prefix demo-contract
echo "downloading dependencies for python"
pip install -r requirements.txt