mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
feat: add script
This commit is contained in:
parent
a53f72ebc6
commit
f5ced95bbf
25
install-emp.sh
Normal file
25
install-emp.sh
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
TOOLS=("emp-tool" "emp-ot")
|
||||
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
brew install openssl pkg-config cmake
|
||||
else
|
||||
if command -v apt-get >/dev/null; then
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y software-properties-common cmake git build-essential libssl-dev
|
||||
elif command -v yum >/dev/null; then
|
||||
sudo yum install -y python3 gcc make git cmake gcc-c++ openssl-devel
|
||||
else
|
||||
echo "System not supported yet!"
|
||||
fi
|
||||
fi
|
||||
|
||||
for tool in ${TOOLS[@]};do
|
||||
cd $tool
|
||||
cmake .
|
||||
make -j4
|
||||
make install
|
||||
cd ..
|
||||
echo "Successfully installed $tool"
|
||||
done
|
||||
Loading…
Reference in New Issue
Block a user