ceremonyclient/install-emp.sh
Hamza Hamud af5097c189
feat: convert emp install python script into bash emp (#496)
* feat: convert emp install python script into bash emp

* feat: add script
2025-12-19 08:07:47 -06:00

26 lines
608 B
Bash

#!/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