{
    "version": "2125",
    "description": "A Git client with snappy UI, three-way merge tool, side-by-side diffs, syntax highlighting, and more.",
    "homepage": "https://www.sublimemerge.com/",
    "license": {
        "identifier": "Shareware",
        "url": "https://www.sublimehq.com/eula"
    },
    "notes": [
        "Sublime Merge may be downloaded and evaluated for free, however a license must be purchased for continued use. There is currently no enforced time limit for the evaluation. For more information please see https://www.sublimemerge.com/",
        "Add Sublime Merge as a context menu option by running:",
        "reg import \"$dir\\install-context.reg\""
    ],
    "architecture": {
        "64bit": {
            "url": "https://download.sublimetext.com/sublime_merge_build_2125_x64.zip",
            "hash": "aa73f08c624f7df604181156d090d912748a814eaa0f2f871bf49048e7cfb27b"
        }
    },
    "post_install": [
        "$exepath = \"$dir\\sublime_merge.exe\".Replace('\\', '\\\\')",
        "'install-context.reg', 'uninstall-context.reg' | ForEach-Object {",
        "    if (Test-Path \"$bucketsdir\\extras\\scripts\\$app\\$_\") {",
        "        $content = Get-Content \"$bucketsdir\\extras\\scripts\\$app\\$_\"",
        "        $content = $content.Replace('$sublime-merge-path', $exepath)",
        "        if ($global) {",
        "            $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
        "        }",
        "    }",
        "    $content | Set-Content -Path \"$dir\\$_\" -Encoding ascii",
        "}"
    ],
    "bin": "smerge.exe",
    "shortcuts": [
        [
            "sublime_merge.exe",
            "Sublime Merge"
        ]
    ],
    "persist": "Data",
    "uninstaller": {
        "script": "if ($cmd -eq 'uninstall') { reg import \"$dir\\uninstall-context.reg\" }"
    },
    "checkver": {
        "url": "https://www.sublimemerge.com/updates/stable_update_check",
        "jsonpath": "$.latest_version"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://download.sublimetext.com/sublime_merge_build_$version_x64.zip"
            }
        }
    }
}
