-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d953328
commit fb705ed
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" |