Skip to content

Commit

Permalink
chore(rolling back):
Browse files Browse the repository at this point in the history
  • Loading branch information
stvnksslr committed Dec 26, 2024
1 parent cbd8778 commit 3f8a05f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ set -euo pipefail

# Detect system architecture and OS combination
case "$(uname -m)_$(uname -s)" in
"x86_64_Linux") ARCH_OS="Linux_x86_64" ;;
"x86_64_Darwin") ARCH_OS="Darwin_x86_64" ;;
"aarch64_Linux" | "arm64_Linux") ARCH_OS="Linux_arm64" ;;
"aarch64_Darwin" | "arm64_Darwin") ARCH_OS="Darwin_arm64" ;;
"x86_64_Linux") ARCH_OS="x86_64-unknown-linux-gnu" ;;
"x86_64_Darwin") ARCH_OS="x86_64-apple-darwin" ;;
"aarch64_Linux" | "arm64_Linux") ARCH_OS="aarch64-unknown-linux-gnu" ;;
"aarch64_Darwin" | "arm64_Darwin") ARCH_OS="aarch64-apple-darwin" ;;
*)
echo "Unsupported system" >&2
exit 1
Expand All @@ -31,5 +31,5 @@ trap 'rm -rf $TMP_DIR' EXIT

# Get latest release, download binary, and install to ~/.local/bin
RELEASE=$(curl -s https://api.github.com/repos/stvnksslr/uv-migrator/releases/latest)
curl -sL "$(echo "$RELEASE" | grep -o "\"browser_download_url\": \"[^\"]*uv-migrator_${ARCH_OS}.tar.gz\"" | cut -d'"' -f4)" | tar xz -C "$TMP_DIR"
curl -sL "$(echo "$RELEASE" | grep -o "\"browser_download_url\": \"[^\"]*uv-migrator-${ARCH_OS}.tar.gz\"" | cut -d'"' -f4)" | tar xz -C "$TMP_DIR"
mv "$TMP_DIR/uv-migrator" "$HOME/.local/bin/" && chmod +x "$HOME/.local/bin/uv-migrator"

0 comments on commit 3f8a05f

Please sign in to comment.