diff --git a/install.sh b/install.sh index a560b49..a894cb1 100644 --- a/install.sh +++ b/install.sh @@ -15,10 +15,10 @@ set -euo pipefail # Detect system architecture and OS combination case "$(uname -m)_$(uname -s)" in -"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" ;; +"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" ;; *) echo "Unsupported system" >&2 exit 1 @@ -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"