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.
- Clone the repository
- Run
./init.shto install the latest version of Cursor IDE. This will setup the cursor to your Application drawer. - Run
./cursor-updater.shto 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).
- 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
The service is running via systemd service and timer.
- The service will check the system architecture and download the corresponding version of Cursor IDE: linux-x64 and linux-arm64.
- The service will check the latest version of Cursor IDE from the Cursor website daily.
- 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. - The service will download the latest version of Cursor IDE.
- The service will make the downloaded AppImage executable.
- The service will move the AppImage to
/optand symlink tocursor.appimageso that the .desktop file can find it. - The service will restart the Cursor IDE if there's any running instance.
init.shwill install the latest version of Cursor IDE and setup the cursor to your Application drawer.cursor-updater.shwill setup the daily updater service.update-cursor.shwill update the Cursor IDE to the latest version. This will run as the background job, so you don't need to worry about it.
This project is licensed under the MIT License - see the LICENSE file for details.
If you like this project, please ⭐ star the repository and ☕ buy me a coffee.
