diff --git a/bucket/cursor.json b/bucket/cursor.json index 4b2278c..664c98a 100644 --- a/bucket/cursor.json +++ b/bucket/cursor.json @@ -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", @@ -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", @@ -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/(?.+)$" + "regex": "^([\\d.]+)$" }, "autoupdate": { - "url": "https://dl.todesktop.com/$matchDlquerypath#/dl.7z", + "url": "https://downloader.cursor.sh/windows/nsis/x64#/dl.7z", "hash": { "mode": "download" }