Skip to content

Commit

Permalink
chore(cursor): fixed version to 0.40.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aliuq committed Aug 26, 2024
1 parent 491c586 commit a525bdc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions bucket/cursor.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"##": "cursor 编辑器",
"version": "0.2.36",
"version": "0.40.1",
"description": "Cursor 是一个集成了 GPT-4 的代码编辑器,可以让你快速地编写、修改和讨论代码1。Cursor 还提供了 API SDK,可以用于调用 Cursor的接口",
"license": {
"identifier": "Proprietary",
Expand All @@ -11,8 +11,8 @@
"Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-64.7z\" \"$dir\"",
"Remove-Item \"$dir\\`$*\", \"$dir\\Uninstall*\" -Recurse"
],
"url": "https://dl.todesktop.com/230313mzl4w4u92/windows/nsis/x64#/dl.7z",
"hash": "78926fbbb120971866c127c78bd079fdf8868a1ebff05a5195fac057a76083e3",
"url": "https://downloader.cursor.sh/windows/nsis/x64#/dl.7z",
"hash": "2e3ee871ac4cc1b0363d942cb2b903deba13be37679c9ac2040d3bc2cd96835e",
"shortcuts": [
[
"Cursor.exe",
Expand All @@ -22,17 +22,17 @@
"persist": "resources/lsp",
"checkver": {
"script": [
"$response = Invoke-WebRequest -Uri 'https://www.cursor.so/'",
"$downloadUrl = $response.Links | Where-Object href -match 'windows/nsis/x64' | Select-Object -first 1 -expand href",
"$downloadUrl = 'https://downloader.cursor.sh/windows/nsis/x64'",
"$res = Invoke-WebRequest -Uri $downloadUrl -MaximumRedirection 0 -UseBasicParsing",
"$filePath = Join-Path $cachedir $res.Headers['Content-Disposition'].Split('=')[1].TrimStart(\"`\"\").TrimEnd(\"`\"\")",
"write-host $filePath",
"$version = [regex]::Match($filePath, '([\\d.]+)').Groups[1].Value",
"Write-Output $version $downloadUrl"
"Write-Output $version"
],
"regex": "^([\\d.]+)\\s+https://dl.todesktop.com/(?<dlquerypath>.+)$"
"regex": "^([\\d.]+)$"
},
"autoupdate": {
"url": "https://dl.todesktop.com/$matchDlquerypath#/dl.7z",
"url": "https://downloader.cursor.sh/windows/nsis/x64#/dl.7z",
"hash": {
"mode": "download"
}
Expand Down

0 comments on commit a525bdc

Please sign in to comment.