Skip to content

automatically check and update cursor for Linux environment

License

Notifications You must be signed in to change notification settings

Eric-SHENNONGSHI/cursor-updater

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cursor Updater

Linux x86_64 Linux ARM64

In the era of AI, Cursor is one of the best AI agents for coding. However, it's UX for updating the IDE itself is such a pain in the ass. Therefore, I decide to build a simple service that will update the Cursor IDE itself daily. However, this might need a frequent maintenance due to the potential endpoint changes.

How to run

  1. Clone the repository
  2. Run ./init.sh to install the latest version of Cursor IDE. This will setup the cursor to your Application drawer.
  3. Run ./cursor-updater.sh to setup the daily updater service. This will install the systemd service and run the updater automatically daily.

That's it! The updater will now run daily at a random time (with up to 1 hour delay for system load balancing).

Manual operations

  • Test the updater: sudo systemctl start cursor-update.service
  • Check update logs: journalctl -u cursor-update.service -f
  • Check timer status: systemctl status cursor-update.timer
  • Stop daily updates: sudo systemctl stop cursor-update.timer
  • Disable daily updates: sudo systemctl disable cursor-update.timer

How it works

The service is running via systemd service and timer.

  1. The service will check the system architecture and download the corresponding version of Cursor IDE: linux-x64 and linux-arm64.
  2. The service will check the latest version of Cursor IDE from the Cursor website daily.
  3. The service will check if the current version of Cursor IDE under /opt/cursor* is the latest version. If it is, the service will exit.
  4. The service will download the latest version of Cursor IDE.
  5. The service will make the downloaded AppImage executable.
  6. The service will move the AppImage to /opt and symlink to cursor.appimage so that the .desktop file can find it.
  7. The service will restart the Cursor IDE if there's any running instance.
  • init.sh will install the latest version of Cursor IDE and setup the cursor to your Application drawer.
  • cursor-updater.sh will setup the daily updater service.
  • update-cursor.sh will update the Cursor IDE to the latest version. This will run as the background job, so you don't need to worry about it.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Buy me a coffee

If you like this project, please ⭐ star the repository and ☕ buy me a coffee.

Buy Me A Coffee

About

automatically check and update cursor for Linux environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%