[cursor] api format update
This commit is contained in:
@ -2,10 +2,10 @@
|
||||
|
||||
set -e
|
||||
|
||||
curl 'https://cursor.com/api/download?platform=linux-x64&releaseTrack=latest' -o latest.json
|
||||
curl 'https://api2.cursor.sh/updates/api/update/linux-x64/cursor/1.0.0/hash/prerelease' -o latest.json
|
||||
|
||||
version="$(grep -Po '"version":"\K[^"]+' latest.json)"
|
||||
url="$(grep -Po '"downloadUrl":"\K[^"]+' latest.json)"
|
||||
url="$(grep -Po '"url":"\K.+\.AppImage' latest.json)"
|
||||
|
||||
rm latest.json
|
||||
|
||||
|
||||
Reference in New Issue
Block a user