Skip to content

Conversation

@mablr
Copy link

@mablr mablr commented Mar 11, 2025

ℹ️ See the status update: #23

Fixes #11

  • Updated remote version retrieval to use Cursor's API endpoint
  • Added jq as a dependency for JSON parsing
  • Dynamically fetch download URL from API response
  • Updated file detection to match new Cursor AppImage naming convention

Thanks to @scetz for his contribution in issue discussion.

…nior#11)

- Updated remote version retrieval to use Cursor's API endpoint
- Added jq as a dependency for JSON parsing
- Dynamically fetch download URL from API response
- Updated file detection to match new Cursor AppImage naming convention

Thanks to @scetz for his contribution in issue discussion.
@stan-sarama
Copy link

Tested this, and it works, thank you. Hopefully it gets merged soon!

@cravall
Copy link

cravall commented Mar 13, 2025

Yeah, would be good to get this merged

- Introduced a new function to calculate ETag based on file chunks.
- Renamed variables from MD5 to Hash for clarity in version comparison.
@wildermuthn
Copy link

Works for me. Should be merged.

@jimkring
Copy link

Thank you!!! 🙏

@vietvh-3042
Copy link

@mablr I copied file changed of you and install jq. But when I run the .sh file I get the message parse error: Invalid numeric literal at line 1, column 9. Please help me

srnbckr added a commit to srnbckr/cursor-setup-wizard that referenced this pull request Mar 25, 2025
This commit replays the PR of @mablr jorcelinojunior#15
and fixes the version fetchting problem.

Additional changes:

* Move AppImage to $HOME/Applications
* Bump gum version to 0.16.0
@mablr
Copy link
Author

mablr commented Mar 25, 2025

@mablr I copied file changed of you and install jq. But when I run the .sh file I get the message parse error: Invalid numeric literal at line 1, column 9. Please help me

@vietvh-3042 Your problem at line 1 doesn't seem to be related to my modifications.

@asetapen
Copy link

Works perfectly - thanks for fixing this!

This was referenced May 11, 2025
@GuiSelair
Copy link

Tested here, and it works perfectly! 🥇

@brkay54
Copy link

brkay54 commented May 20, 2025

I also tested, it works perfectly! LGTM.

@Vincent14
Copy link

@jorcelinojunior where are you please? : )

@mablr mablr mentioned this pull request May 25, 2025
@jzou-miru
Copy link

jzou-miru commented May 30, 2025

MMM - the script ran successfully but i can't get Cursor to open using the updated cursor-setup script - maybe other bugs?

 ▶  Looking for the latest version online...
 ✔  Latest version details retrieved successfully.
 »  Latest version online:                                                                                                                        
      - name: Cursor-0.51.0-x86_64.AppImage                                                                                                       
      - version: 0.51.0                                                                                                                           
      - size: 181.90 MB                                                                                                                           
      - Hash: ad770b4973e604532609239f07a10b16-37                                                                                                 
      - download URL: https://downloads.cursor.com/production/adaabf32700c570904618df5bd7166988f3d079b/linux/x64/Cursor-0.51.0-x86_64.AppImage    
 ▶  Starting the download of the latest version...
 181MiB 0:00:04 [39.7MiB/s] [=================================================================================================================>] 100%            
 »  Adjusting permissions for the AppImage...
 ✔  Permissions updated for the new AppImage.
 ✔  Download complete, and permissions are set!
 ▶  Getting the Cursor logo ready...
 ✔  Logo successfully downloaded to: /home/jzou/.local/share/icons/cursor-icon.svg
 ▶  Creating desktop launchers for Cursor...
 ✔  Launcher created: /home/jzou/.local/share/applications/cursor.desktop
 ✔  Permissions set: /home/jzou/.local/share/applications/cursor.desktop
Marking launcher as trusted /bash: line 1: dbus-launch: command not found
 ✔  Launcher marked as trusted: /home/jzou/.local/share/applications/cursor.desktop
 ✔  Launcher created: /home/jzou/Desktop/cursor.desktop
 ✔  Permissions set: /home/jzou/Desktop/cursor.desktop
Marking launcher as trusted /bash: line 1: dbus-launch: command not found
 ✔  Launcher marked as trusted: /home/jzou/Desktop/cursor.desktop
 ✔  All desktop launchers created successfully!
 ▶  Setting up AppArmor configuration...
 ✔  AppArmor profile successfully applied!
 ▶  Adding the 'cursor' command to your system...
 ✔  Permissions updated for '/usr/local/bin/cursor'.
 ✔  The 'cursor' command is now ready to use! ✨                          
    Here are a few ways to use it:                                        
      $ cursor                  # Open the Cursor application             
      $ cursor .                # Open the current directory in Cursor    
      $ cursor /some/directory  # Open a specific directory in Cursor     
      $ cursor /path/to/file.py # Open a specific file in Cursor    

@thiagodeev
Copy link

Thanks, it worked!
@jorcelinojunior please review it

@Velenir
Copy link

Velenir commented Jul 2, 2025

Version fetching with this updated script broke for me today.
First because API_URL now redirects, second because it didn't work without some header.
Changing L175 from curl -s \"$API_URL\" to curl -sL -H \"User-Agent: Mozilla/5.0\" \"$API_URL\" fixed that.

@mablr mablr mentioned this pull request Jul 16, 2025
@SandiyosDev
Copy link

will this be merged and tagged? current release does not function
Is this repo abandoned

@mablr
Copy link
Author

mablr commented Sep 19, 2025

Yes repo is abandoned, that’s why I maintained a fork.

Now cursor has released a deb package, this script is actually useless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update to 0.46.x