Support for aarch64
This commit is contained in:
+13
-5
@@ -63,24 +63,32 @@ fi
|
||||
|
||||
# Test 4: Check API connectivity
|
||||
echo "4. Testing API connectivity..."
|
||||
if command -v curl >/dev/null 2>&1 && command -v jq >/dev/null 2>&1; then
|
||||
if curl -s --max-time 10 "https://api2.cursor.sh/updates/check/golden/linux-x64-deb/cursor" | jq -r '.version' >/dev/null 2>&1; then
|
||||
if command -v curl >/dev/null 2>&1; then
|
||||
if curl -s --max-time 10 -I "https://api2.cursor.sh/updates/download/golden/linux-x64/cursor/latest" >/dev/null 2>&1; then
|
||||
echo " ✓ Cursor API is accessible"
|
||||
else
|
||||
echo " ⚠ Cursor API not accessible (this might be temporary)"
|
||||
fi
|
||||
else
|
||||
echo " ⚠ Skipping API test (curl or jq not available)"
|
||||
echo " ⚠ Skipping API test (curl not available)"
|
||||
fi
|
||||
|
||||
# Test 5: Check current version
|
||||
echo "5. Checking current version..."
|
||||
CURRENT_VERSION=$(grep -o 'version = "[^"]*"' flake.nix | head -1 | cut -d'"' -f2)
|
||||
if [[ -f "cursor-release.nix" ]]; then
|
||||
CURRENT_VERSION=$(grep -o 'version = "[^"]*"' cursor-release.nix | head -1 | cut -d'"' -f2)
|
||||
else
|
||||
CURRENT_VERSION=$(grep -o 'version = "[^"]*"' flake.nix | head -1 | cut -d'"' -f2)
|
||||
fi
|
||||
echo " Current version: $CURRENT_VERSION"
|
||||
|
||||
# Test 6: Check if SHA256 is placeholder
|
||||
echo "6. Checking SHA256 hash..."
|
||||
CURRENT_SHA256=$(grep -o 'sha256 = "[^"]*"' flake.nix | head -1 | cut -d'"' -f2)
|
||||
if [[ -f "cursor-release.nix" ]]; then
|
||||
CURRENT_SHA256=$(grep -o 'x86_64-linux = "[^"]*"' cursor-release.nix | head -1 | cut -d'"' -f2)
|
||||
else
|
||||
CURRENT_SHA256=$(grep -o 'sha256 = "[^"]*"' flake.nix | head -1 | cut -d'"' -f2)
|
||||
fi
|
||||
if [[ "$CURRENT_SHA256" == "0000000000000000000000000000000000000000000000000000" ]]; then
|
||||
echo " ⚠ SHA256 is placeholder - needs to be updated"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user