Added qClient installation based on releases
This commit is contained in:
parent
1c0ecc9919
commit
1318ad6740
@ -94,8 +94,39 @@ cd ~/ceremonyclient/
|
||||
# git remote set-url origin https://github.com/QuilibriumNetwork/ceremonyclient.git || git remote set-url origin https://source.quilibrium.com/quilibrium/ceremonyclient.git
|
||||
git checkout release
|
||||
|
||||
# Get the system architecture
|
||||
# ARCH=$(uname -m)
|
||||
# Determine the ExecStart line based on the architecture
|
||||
ARCH=$(uname -m)
|
||||
OS=$(uname -s)
|
||||
|
||||
# Determine the node binary name based on the architecture and OS
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
if [ "$OS" = "Linux" ]; then
|
||||
NODE_BINARY="node-$VERSION-linux-amd64"
|
||||
GO_BINARY="go1.22.4.linux-amd64.tar.gz"
|
||||
QCLIENT_BINARY="qclient-$VERSION-linux-amd64"
|
||||
elif [ "$OS" = "Darwin" ]; then
|
||||
NODE_BINARY="node-$VERSION-darwin-amd64"
|
||||
GO_BINARY="go1.22.44.linux-amd64.tar.gz"
|
||||
QCLIENT_BINARY="qclient-$VERSION-darwin-arm64"
|
||||
fi
|
||||
elif [ "$ARCH" = "aarch64" ]; then
|
||||
if [ "$OS" = "Linux" ]; then
|
||||
NODE_BINARY="node-$VERSION-linux-arm64"
|
||||
GO_BINARY="go1.22.4.linux-arm64.tar.gz"
|
||||
elif [ "$OS" = "Darwin" ]; then
|
||||
NODE_BINARY="node-$VERSION-darwin-arm64"
|
||||
GO_BINARY="go1.22.4.linux-arm64.tar.gz"
|
||||
QCLIENT_BINARY="qclient-$VERSION-linux-arm64"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Step 4:Download qClient
|
||||
echo "⏳Downloading qClient"
|
||||
sleep 1 # Add a 1-second delay
|
||||
cd ~/ceremonyclient/client
|
||||
wget https://releases.quilibrium.com/$QCLIENT_BINARY
|
||||
mv $QCLIENT_BINARY qclient
|
||||
chmod +x qclient
|
||||
|
||||
# Step 5:Determine the ExecStart line based on the architecture
|
||||
# Get the current user's home directory
|
||||
|
||||
Loading…
Reference in New Issue
Block a user