Skip to content

Commit

Permalink
installation scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhawvipul committed Mar 1, 2024
1 parent d953328 commit fb705ed
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions installation/linux/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

# Set the version you want to install
RES_VERSION="v0.2.0"

# Set the installation directory
INSTALL_DIR="/usr/local/bin"

# URL for the Resonate release tarball
RES_URL="https://github.com/resonatehq/resonate/releases/download/${RES_VERSION}/resonate-linux-amd64"

# Temporary directory for downloading
TMP_DIR=$(mktemp -d)

# Download Resonate binary
echo "Downloading Resonate ${RES_VERSION}..."
curl -L -o "${TMP_DIR}/resonate" "${RES_URL}"

# Install Resonate binary
echo "Installing Resonate to ${INSTALL_DIR}..."
sudo install "${TMP_DIR}/resonate" "${INSTALL_DIR}"

# Cleanup
echo "Cleaning up..."
rm -rf "${TMP_DIR}"

echo "Resonate ${RES_VERSION} has been installed!"

0 comments on commit fb705ed

Please sign in to comment.