{ "version": "4-4215", "description": "A sophisticated text editor for code, markup and prose", "homepage": "https://www.sublimetext.com", "license": { "identifier": "Shareware", "url": "https://www.sublimetext.com/eula" }, "notes": [ "Add Sublime Text as a context menu option by running:", "reg import \"$dir\\install-context.reg\"" ], "architecture": { "64bit": { "url": "https://download.sublimetext.com/sublime_text_build_4215_x64.zip", "hash": "14f9d6190d5d118bd61a7067a6b00e27e6a82f5f42a94e675792ec7734e09aca" } }, "post_install": [ "$sublimepath = \"$dir\\sublime_text.exe\".Replace('\\', '\\\\')", "'install-context.reg', 'uninstall-context.reg' | ForEach-Object {", " if (Test-Path \"$bucketsdir\\$bucket\\scripts\\$app\\$_\") {", " $content = Get-Content \"$bucketsdir\\$bucket\\scripts\\$app\\$_\"", " $content = $content.Replace('$sublime', $sublimepath)", " if ($global) {", " $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')", " }", " }", " $content | Set-Content -Path \"$dir\\$_\" -Encoding ascii", "}" ], "pre_uninstall": "if ($cmd -eq 'uninstall') { reg import \"$dir\\uninstall-context.reg\" }", "bin": "subl.exe", "shortcuts": [ [ "sublime_text.exe", "Sublime Text 4" ] ], "persist": "Data", "checkver": { "url": "https://www.sublimetext.com/updates/4/stable_update_check", "jsonpath": "$.latest_version", "regex": "((\\d)\\d+)", "replace": "$2-$1" }, "autoupdate": { "architecture": { "64bit": { "url": "https://download.sublimetext.com/sublime_text_build_$preReleaseVersion_x64.zip" } } } }