When I click the download button from my Linux machine, it only seems to want to download the Mac version. Is there a direct link for the AppImage?
Thanks, Robert
When I click the download button from my Linux machine, it only seems to want to download the Mac version. Is there a direct link for the AppImage?
Thanks, Robert
import os
import requests
def update_cursor():
url = "https://www.cursor.com/api/download?platform=linux-x64&releaseTrack=stable"
r = requests.get(url)
download_url = r.json()['downloadUrl']
# Download the file
print("Downloading Cursor...")
response = requests.get(download_url, stream=True)
response.raise_for_status()
# Save to a file
filename = "cursor.appimage" # or extract from URL
with open(filename, 'wb') as file:
for chunk in response.iter_content(chunk_size=8192):
file.write(chunk)
print(f"Downloaded {filename}")
return filename
# Example usage
if __name__ == "__main__":
downloaded_file = update_cursor()
print(f"Cursor installer saved as: {downloaded_file}")
os.system(f"chmod +x {downloaded_file}")
os.system(f"mv {downloaded_file} /opt/cursor.appimage")