diff --git a/scripts/install.ps1 b/scripts/install.ps1 index bf50c85..8792208 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -103,8 +103,8 @@ function Install-CursorModifier { # Look for Windows binary with our architecture $possibleNames = @( - "cursor-id-modifier_$($latestRelease.tag_name)_windows_x86_64.exe", - "cursor-id-modifier_$($latestRelease.tag_name)_windows_$($arch).exe", + "cursor-id-modifier_$($latestRelease.tag_name.TrimStart('v'))_windows_x86_64.exe", + "cursor-id-modifier_$($latestRelease.tag_name.TrimStart('v'))_windows_$($arch).exe", "cursor-id-modifier_windows_$($arch).exe" ) diff --git a/scripts/install.sh b/scripts/install.sh index a437d6d..adc7881 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -86,8 +86,11 @@ main() { echo -e "${BLUE}Fetching latest release information...${NC}" LATEST_URL="https://api.github.com/repos/yuaotian/go-cursor-help/releases/latest" + # Get latest version and remove 'v' prefix + VERSION=$(curl -s "$LATEST_URL" | grep "tag_name" | cut -d'"' -f4 | sed 's/^v//') + # Construct binary name - BINARY_NAME="cursor-id-modifier_${latestRelease.tag_name}_${OS}_${ARCH}" + BINARY_NAME="cursor-id-modifier_${VERSION}_${OS}_${ARCH}" echo -e "${BLUE}Looking for asset: $BINARY_NAME${NC}" # Get download URL directly