{ "version": "3.32.25", "description": "The AI Code Editor", "homepage": "https://www.cursor.com/", "license": { "identifier": "Proprietary", "url": "https://www.cursor.com/terms-of-service" }, "innosetup": true, "architecture": { "64bit": { "url": "https://downloads.cursor.com/production/d3b7354f6e7809088c6623719f50cfbdf33a048f/win32/x64/user-setup/CursorUserSetup-x64-3.32.25.exe", "hash": "e6aed4f8a5b72c78f2ec464bab551180d559895709bc67416624f22d2a31aaf0" }, "arm64": { "url": "https://downloads.cursor.com/production/d3b7354f6e7809088c6623719f50cfbdf33a048f/win32/arm64/user-setup/CursorUserSetup-arm64-3.32.25.exe", "hash": "dc13f504d9ec765187345011867e4bb9ea724e0998649777ba5c5da6dcabf12e" } }, "extract_dir": "{code_GetDestDir}", "post_install": [ "Remove-Item \"$dir\\`$*\", \"$dir\\Uninst*\" -Recurse", "if (!(Test-Path \"$dir\\data\\extensions\") -and (Test-Path \"$env:USERPROFILE\\.cursor\\extensions\")) {", " info '[Portable Mode] Copying extensions...'", " Copy-Item \"$env:USERPROFILE\\.cursor\\extensions\" \"$dir\\data\" -Recurse", "}", "if (!(Test-Path \"$dir\\data\\user-data\") -and (Test-Path \"$env:AppData\\Cursor\")) {", " info '[Portable Mode] Copying user data...'", " Copy-Item \"$env:AppData\\Cursor\" \"$dir\\data\\user-data\" -Recurse", "}", "$extensions_file = \"$dir\\data\\extensions\\extensions.json\"", "if ((Test-Path \"$extensions_file\")) {", " info 'Adjusting path in extensions file...'", " (Get-Content \"$extensions_file\") -replace '(?<=cursor(/|\\\\\\\\)).*?(?=(/|\\\\\\\\)data(/|\\\\\\\\)extensions)', $version | Set-Content \"$extensions_file\"", "}", "$product_path = \"$dir\\resources\\app\\product.json\"", "$product_text = [System.IO.File]::ReadAllText($product_path)", "$product_patched = [regex]::Replace($product_text, ',\\s*\\r?\\n\\s*\"target\"\\s*:\\s*\"user\"(?=\\s*\\r?\\n\\})', '')", "if ($product_patched -ne $product_text) {", " info '[Portable Mode] Removing \"target\" from product.json...'", " [System.IO.File]::WriteAllText($product_path, $product_patched, (New-Object System.Text.UTF8Encoding($false)))", "} elseif (($product_text | ConvertFrom-Json).PSObject.Properties.Name -contains 'target') {", " warn 'Portable mode is not enabled: unexpected product.json layout.'", "}", "$argv_file = \"$dir\\data\\argv.json\"", "if (!(Test-Path $argv_file) -and (Test-Path \"$env:USERPROFILE\\.cursor\\argv.json\")) {", " info '[Portable Mode] Copying argv.json...'", " Copy-Item \"$env:USERPROFILE\\.cursor\\argv.json\" $argv_file", "}" ], "bin": [ [ "resources\\app\\bin\\cursor.cmd", "cursor" ] ], "shortcuts": [ [ "Cursor.exe", "Cursor" ] ], "persist": "data", "checkver": { "url": "https://www.cursor.com/api/download?platform=win32-x64-user&releaseTrack=stable", "regex": "production/(?[\\w]+)/win32.*-([\\d.]+)\\.exe" }, "autoupdate": { "architecture": { "64bit": { "url": "https://downloads.cursor.com/production/$matchCode/win32/x64/user-setup/CursorUserSetup-x64-$version.exe" }, "arm64": { "url": "https://downloads.cursor.com/production/$matchCode/win32/arm64/user-setup/CursorUserSetup-arm64-$version.exe" } } } }