forked from ssvlabs/awesome-ssv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·27 lines (24 loc) · 889 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
cd ssv-keys
git fetch -a
git checkout v3
cd ..
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 "downloading dependencies for python"
#
#pip install -r requirements.txt